rpc: fix CodeHash type error on build (#100)

This commit is contained in:
Calvin Lau 2021-06-09 15:19:08 +08:00 committed by GitHub
parent 0c6e44d3d3
commit 16cb56d270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -951,7 +951,7 @@ func (e *PublicEthAPI) GetProof(address common.Address, storageKeys []string, bl
Address: address,
AccountProof: []string{accProofStr},
Balance: (*hexutil.Big)(balance),
CodeHash: common.BytesToHash(res.CodeHash),
CodeHash: common.HexToHash(res.CodeHash),
Nonce: hexutil.Uint64(res.Nonce),
StorageHash: common.Hash{}, // NOTE: Ethermint doesn't have a storage hash. TODO: implement?
StorageProof: storageProofs,