Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit 177574a

Browse files
KamiDaraskachoi
andauthored
fix error of timeout when using Truffle to deploy contract (#768)
* fix error of timeout when using Truffle to deploy contract * fix CHANGELOG.MD Co-authored-by: Daniel Choi <13338103+araskachoi@users.noreply.github.com>
1 parent 7995ccd commit 177574a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
4343
* (evm) [\#670](https://github.com/cosmos/ethermint/pull/670) Migrate types to the ones defined by the protobuf messages, which are required for the stargate release.
4444

4545
### Bug Fixes
46+
47+
* (evm) [\#767](https://github.com/cosmos/ethermint/issues/767) Fix error of timeout when using Truffle to deploy contract.
4648
* (evm) [\#751](https://github.com/cosmos/ethermint/issues/751) Fix misused method to calculate block hash in evm related function.
4749
* (evm) [\#721](https://github.com/cosmos/ethermint/issues/721) Fix mismatch block hash in rpc response when use eht.getBlock.
4850
* (evm) [\#730](https://github.com/cosmos/ethermint/issues/730) Fix 'EIP2028' not open when Istanbul version has been enabled.

rpc/types/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func EthTransactionsFromTendermint(clientCtx clientcontext.CLIContext, txs []tmt
125125
continue
126126
}
127127
// TODO: Remove gas usage calculation if saving gasUsed per block
128-
gasUsed.Add(gasUsed, ethTx.Fee())
128+
gasUsed.Add(gasUsed, big.NewInt(int64(ethTx.GetGas())))
129129
transactionHashes = append(transactionHashes, common.BytesToHash(tx.Hash()))
130130
}
131131

0 commit comments

Comments
 (0)