@@ -34,7 +34,7 @@ func TestAddNative(t *testing.T) {
34
34
require .Nil (t , err )
35
35
statedb := state .NewDBImpl (ctx , & testApp .EvmKeeper , true )
36
36
blockCtx , _ := testApp .EvmKeeper .GetVMBlockContext (ctx , core .GasPool (suppliedGas ))
37
- evm := vm .NewEVM (* blockCtx , vm. TxContext {}, statedb , cfg , vm.Config {}, testApp .EvmKeeper .CustomPrecompiles ())
37
+ evm := vm .NewEVM (* blockCtx , statedb , cfg , vm.Config {}, testApp .EvmKeeper .CustomPrecompiles ())
38
38
_ , g , err := p .RunAndCalculateGas (evm , caller , caller , append (p .GetExecutor ().(* pointer.PrecompileExecutor ).AddNativePointerID , args ... ), suppliedGas , nil , nil , false , false )
39
39
require .NotNil (t , err )
40
40
require .NotNil (t , statedb .GetPrecompileError ())
@@ -53,7 +53,7 @@ func TestAddNative(t *testing.T) {
53
53
}},
54
54
})
55
55
statedb = state .NewDBImpl (ctx , & testApp .EvmKeeper , false )
56
- evm = vm .NewEVM (* blockCtx , vm. TxContext {}, statedb , cfg , vm.Config {}, testApp .EvmKeeper .CustomPrecompiles ())
56
+ evm = vm .NewEVM (* blockCtx , statedb , cfg , vm.Config {}, testApp .EvmKeeper .CustomPrecompiles ())
57
57
ret , g , err := p .RunAndCalculateGas (evm , caller , caller , append (p .GetExecutor ().(* pointer.PrecompileExecutor ).AddNativePointerID , args ... ), suppliedGas , nil , nil , false , false )
58
58
require .Nil (t , err )
59
59
require .Equal (t , uint64 (8889527 ), g )
@@ -82,7 +82,7 @@ func TestAddNative(t *testing.T) {
82
82
testApp .EvmKeeper .DeleteERC20NativePointer (statedb .Ctx (), "test" , version )
83
83
testApp .EvmKeeper .SetERC20NativePointerWithVersion (statedb .Ctx (), "test" , pointerAddr , version - 1 )
84
84
statedb = state .NewDBImpl (statedb .Ctx (), & testApp .EvmKeeper , true )
85
- evm = vm .NewEVM (* blockCtx , vm. TxContext {}, statedb , cfg , vm.Config {}, testApp .EvmKeeper .CustomPrecompiles ())
85
+ evm = vm .NewEVM (* blockCtx , statedb , cfg , vm.Config {}, testApp .EvmKeeper .CustomPrecompiles ())
86
86
_ , _ , err = p .RunAndCalculateGas (evm , caller , caller , append (p .GetExecutor ().(* pointer.PrecompileExecutor ).AddNativePointerID , args ... ), suppliedGas , nil , nil , false , false )
87
87
require .Nil (t , err )
88
88
require .Nil (t , statedb .GetPrecompileError ())
0 commit comments