ante, evm: fix panic when checking BlockGasMeter (#120)

* ante, evm: fix panic when checking BlockGasMeter

* update block gas limit function
This commit is contained in:
Federico Kunze
2021-06-14 10:24:08 -04:00
committed by GitHub
parent 9d18414c93
commit bb91d8d93d
6 changed files with 42 additions and 16 deletions
+3 -1
View File
@@ -20,7 +20,9 @@ import (
"github.com/stretchr/testify/require"
rpctypes "github.com/cosmos/ethermint/ethereum/rpc/types"
ethermint "github.com/cosmos/ethermint/types"
evmtypes "github.com/cosmos/ethermint/x/evm/types"
ethcmn "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
ethtypes "github.com/ethereum/go-ethereum/core/types"
@@ -230,7 +232,7 @@ func TestEth_GetTransactionLogs(t *testing.T) {
}
func TestEth_protocolVersion(t *testing.T) {
expectedRes := hexutil.Uint(evmtypes.ProtocolVersion)
expectedRes := hexutil.Uint(ethermint.ProtocolVersion)
rpcRes := call(t, "eth_protocolVersion", []string{})