aboutsummaryrefslogtreecommitdiffstats
path: root/block.go
diff options
context:
space:
mode:
Diffstat (limited to 'block.go')
-rw-r--r--block.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.go b/block.go
index dd329f8ac..39858b0fd 100644
--- a/block.go
+++ b/block.go
@@ -73,7 +73,7 @@ func CreateBlock(root string, num int, prevHash string, base string, difficulty
contract := NewContract(tx.value, []byte(""))
block.state.Update(string(addr), string(contract.MarshalRlp()))
for i, val := range tx.data {
- contract.state.Update(string(Encode(i)), val)
+ contract.state.Update(string(Encode(uint32(i))), val)
}
block.UpdateContract(addr, contract)
}