fix macro_assembler -> add call to acounts_cache.persist

This commit is contained in:
jangko 2020-06-01 13:58:14 +07:00
parent 844071033a
commit 8ee0ab4e89
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 6 additions and 1 deletions

View File

@ -301,8 +301,10 @@ proc runVM*(blockNumber: Uint256, chainDB: BaseChainDB, boa: Assembler): bool =
error "different memory value", idx=i, expected=mem, actual=actual error "different memory value", idx=i, expected=mem, actual=actual
return false return false
var stateDB = computation.vmState.accountDb
stateDB.persist()
var var
stateDB = computation.vmState.accountDb
storageRoot = stateDB.getStorageRoot(computation.msg.contractAddress) storageRoot = stateDB.getStorageRoot(computation.msg.contractAddress)
trie = initSecureHexaryTrie(chainDB.db, storageRoot) trie = initSecureHexaryTrie(chainDB.db, storageRoot)

View File

@ -840,3 +840,6 @@ proc opMemoryMain*() =
"0x00" "0x00"
"0x00" "0x00"
"0x0000000000000000000000000000002000000000000000000000000000000000" "0x0000000000000000000000000000002000000000000000000000000000000000"
when isMainModule:
opMemoryMain()