From 9cc464b5e4b3786405db6cee88b1ef8070d62664 Mon Sep 17 00:00:00 2001 From: Pierre <974741468@qq.com> Date: Tue, 8 Dec 2020 23:49:35 +0800 Subject: [PATCH] open Istanbul and MuirGlacier from ChainConfig (#645) * open Istanbul and MuirGlacier * fix ut * fix ut --- tests/rpc_test.go | 2 +- x/evm/types/chain_config.go | 4 ++-- x/evm/types/chain_config_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/rpc_test.go b/tests/rpc_test.go index fe3ae290..81b4997d 100644 --- a/tests/rpc_test.go +++ b/tests/rpc_test.go @@ -762,7 +762,7 @@ func TestEth_EstimateGas(t *testing.T) { err := json.Unmarshal(rpcRes.Result, &gas) require.NoError(t, err, string(rpcRes.Result)) - require.Equal(t, "0xf552", gas) + require.Equal(t, "0xf54c", gas) } func TestEth_EstimateGas_ContractDeployment(t *testing.T) { diff --git a/x/evm/types/chain_config.go b/x/evm/types/chain_config.go index e0f7e92b..1f9184ad 100644 --- a/x/evm/types/chain_config.go +++ b/x/evm/types/chain_config.go @@ -85,8 +85,8 @@ func DefaultChainConfig() ChainConfig { ByzantiumBlock: sdk.ZeroInt(), ConstantinopleBlock: sdk.ZeroInt(), PetersburgBlock: sdk.ZeroInt(), - IstanbulBlock: sdk.NewInt(-1), - MuirGlacierBlock: sdk.NewInt(-1), + IstanbulBlock: sdk.ZeroInt(), + MuirGlacierBlock: sdk.ZeroInt(), YoloV2Block: sdk.NewInt(-1), EWASMBlock: sdk.NewInt(-1), } diff --git a/x/evm/types/chain_config_test.go b/x/evm/types/chain_config_test.go index 1fdbcf87..3d492794 100644 --- a/x/evm/types/chain_config_test.go +++ b/x/evm/types/chain_config_test.go @@ -236,8 +236,8 @@ eip158_block: "0" byzantium_block: "0" constantinople_block: "0" petersburg_block: "0" -istanbul_block: "-1" -muir_glacier_block: "-1" +istanbul_block: "0" +muir_glacier_block: "0" yoloV2_block: "-1" ewasm_block: "-1" `