xeth, tests: fixed api

This commit is contained in:
obscuren
2015-06-17 11:44:40 +02:00
parent 30b27336ea
commit a977f3c0dc
3 changed files with 6 additions and 6 deletions

View File

@ -124,7 +124,7 @@ func (t *BlockTest) InsertPreState(ethereum *eth.Ethereum) (*state.StateDB, erro
obj.SetBalance(balance)
obj.SetNonce(nonce)
for k, v := range acct.Storage {
statedb.SetState(common.HexToAddress(addrString), common.HexToHash(k), common.FromHex(v))
statedb.SetState(common.HexToAddress(addrString), common.HexToHash(k), common.HexToHash(v))
}
}
// sync objects to trie