x/evm: StateBD tests (#407)

* draft state_transition

* working test

* keeper test

* statedb rewrite

* fix tests

* add keeper statedb test

* minor changes

* x/evm: StateBD tests

* try fix

* fix stateObject.setState

* Update x/evm/types/state_object.go

* update stateObject.setState

* uncomment test

* increase coverage

* fix test-import

* update rpc tests

Co-authored-by: Justin Thompson <justin.thompson12@hotmail.com>
Co-authored-by: noot <elizabethjbinks@gmail.com>
This commit is contained in:
Federico Kunze
2020-07-27 15:33:16 -04:00
committed by GitHub
co-authored by Justin Thompson noot
parent 7b4f712f66
commit de8d8acf77
6 changed files with 122 additions and 29 deletions
+2 -2
View File
@@ -360,9 +360,9 @@ func applyTransaction(
// Apply the transaction to the current state (included in the env)
execResult, err := ethcore.ApplyMessage(vmenv, msg, gp)
// NOTE: ignore vm execution error (eg: tx out of gas) as we care only about state transition errors
if err != nil {
return nil, 0, err
// NOTE: ignore vm execution error (eg: tx out of gas at block 51169) as we care only about state transition errors
return &ethtypes.Receipt{}, 0, nil
}
// Update the state with pending changes