diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-14 15:07:31 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-09-14 15:10:46 +0800 |
commit | 5bbd7fb390a539a7183bccc5f2b75b4e564ed398 (patch) | |
tree | 1c13d07970c559b460e83d686ce71cbb484de2ab /core/vm/contracts_test.go | |
parent | 79b11121a7e4beef0d0297894289200b9842c36c (diff) | |
download | dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.gz dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.bz2 dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.lz dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.xz dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.zst dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.zip |
consensus, core, params: rebrand Metro to Byzantium
Diffstat (limited to 'core/vm/contracts_test.go')
-rw-r--r-- | core/vm/contracts_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index 880d7324a..513651835 100644 --- a/core/vm/contracts_test.go +++ b/core/vm/contracts_test.go @@ -321,7 +321,7 @@ var bn256PairingTests = []precompiledTest{ } func testPrecompiled(addr string, test precompiledTest, t *testing.T) { - p := PrecompiledContractsMetropolis[common.HexToAddress(addr)] + p := PrecompiledContractsByzantium[common.HexToAddress(addr)] in := common.Hex2Bytes(test.input) contract := NewContract(AccountRef(common.HexToAddress("1337")), nil, new(big.Int), p.RequiredGas(in)) @@ -338,7 +338,7 @@ func benchmarkPrecompiled(addr string, test precompiledTest, bench *testing.B) { if test.noBenchmark { return } - p := PrecompiledContractsMetropolis[common.HexToAddress(addr)] + p := PrecompiledContractsByzantium[common.HexToAddress(addr)] in := common.Hex2Bytes(test.input) reqGas := p.RequiredGas(in) contract := NewContract(AccountRef(common.HexToAddress("1337")), |