diff --git a/CHANGELOG.md b/CHANGELOG.md index 61a0e2b43..428d852d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -208,6 +208,7 @@ corresponding Ethereum API namespace: ### Bug Fixes +* (evm) [\#767](https://github.com/cosmos/ethermint/issues/767) Fix error of timeout when using Truffle to deploy contract. * (evm) [\#751](https://github.com/cosmos/ethermint/issues/751) Fix misused method to calculate block hash in evm related function. * (evm) [\#721](https://github.com/cosmos/ethermint/issues/721) Fix mismatch block hash in rpc response when use eth.getBlock. * (evm) [\#730](https://github.com/cosmos/ethermint/issues/730) Fix 'EIP2028' not open when Istanbul version has been enabled. diff --git a/rpc/types/utils.go b/rpc/types/utils.go index 7e160aba0..607663c99 100644 --- a/rpc/types/utils.go +++ b/rpc/types/utils.go @@ -127,7 +127,7 @@ func EthTransactionsFromTendermint(clientCtx client.Context, txs []tmtypes.Tx) ( continue } // TODO: Remove gas usage calculation if saving gasUsed per block - gasUsed.Add(gasUsed, ethTx.Fee()) + gasUsed.Add(gasUsed, big.NewInt(int64(ethTx.GetGas()))) transactionHashes = append(transactionHashes, common.BytesToHash(tx.Hash())) }