mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
fix(test): enable 3860 properly
This commit is contained in:
parent
0bcc0c52d8
commit
68bd04fa47
1 changed files with 5 additions and 1 deletions
|
|
@ -148,11 +148,15 @@ func TestCreateGas(t *testing.T) {
|
|||
BlockNumber: big.NewInt(0),
|
||||
}
|
||||
config := Config{}
|
||||
chainConfig := params.AllEthashProtocolChanges
|
||||
if tt.eip3860 {
|
||||
config.ExtraEips = []int{3860}
|
||||
vmctx.Random = new(common.Hash)
|
||||
|
||||
chainConfig = params.MergedTestChainConfig
|
||||
}
|
||||
|
||||
evm := NewEVM(vmctx, statedb, params.AllEthashProtocolChanges, config)
|
||||
evm := NewEVM(vmctx, statedb, chainConfig, config)
|
||||
var startGas = uint64(testGas)
|
||||
ret, gas, err := evm.Call(common.Address{}, address, nil, startGas, new(uint256.Int))
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue