Fixed state overwriting issue

This commit is contained in:
obscuren
2014-05-21 01:12:28 +02:00
parent 6ef2832083
commit 3c35ba7c31
5 changed files with 20 additions and 11 deletions

View File

@ -78,6 +78,7 @@ func (c *StateObject) SetAddr(addr []byte, value interface{}) {
func (c *StateObject) SetStorage(num *big.Int, val *ethutil.Value) {
addr := ethutil.BigToBytes(num, 256)
//fmt.Println("storing", val.BigInt(), "@", num)
c.SetAddr(addr, val)
}