evm: move Keeper and Querier to /keeper package (#182)

* evm: move Keeper and Querier to /keeper package

* keeper: update keeper_test.go

* fix format

* evm: use aliased types

* add comments from review

* changelog
This commit is contained in:
Federico Kunze
2020-03-09 10:17:23 -03:00
committed by GitHub
parent b6af79638c
commit 30f34e6c59
13 changed files with 221 additions and 178 deletions
+2 -2
View File
@@ -814,7 +814,7 @@ func (e *PublicEthAPI) GetProof(address common.Address, storageKeys []string, bl
// TODO: convert TM merkle proof to []string if needed in future
// proof := pRes.Response.GetProof()
account := new(types.QueryAccount)
var account types.QueryResAccount
e.cliCtx.Codec.MustUnmarshalJSON(pRes.Response.GetValue(), &account)
storageProofs := make([]StorageResult, len(storageKeys))
@@ -825,7 +825,7 @@ func (e *PublicEthAPI) GetProof(address common.Address, storageKeys []string, bl
if err != nil {
return nil, err
}
value := new(types.QueryResStorage)
var value types.QueryResStorage
e.cliCtx.Codec.MustUnmarshalJSON(vRes.Response.GetValue(), &value)
storageProofs[i] = StorageResult{