@@ -38,7 +38,6 @@ import (
3838
3939 // force-load js tracers to trigger registration
4040 _ "github.com/ethereum/go-ethereum/eth/tracers/js"
41- "github.com/holiman/uint256"
4241)
4342
4443func TestDefaults (t * testing.T ) {
@@ -339,11 +338,7 @@ func benchmarkNonModifyingCode(gas uint64, code []byte, name string, tracerCode
339338 Tracer : tracer .Hooks ,
340339 }
341340 }
342- var (
343- destination = common .BytesToAddress ([]byte ("contract" ))
344- vmenv = NewEnv (cfg )
345- sender = vm .AccountRef (cfg .Origin )
346- )
341+ destination := common .BytesToAddress ([]byte ("contract" ))
347342 cfg .State .CreateAccount (destination )
348343 eoa := common .HexToAddress ("E0" )
349344 {
@@ -363,12 +358,12 @@ func benchmarkNonModifyingCode(gas uint64, code []byte, name string, tracerCode
363358 //cfg.State.CreateAccount(cfg.Origin)
364359 // set the receiver's (the executing contract) code for execution.
365360 cfg .State .SetCode (destination , code )
366- vmenv . Call (sender , destination , nil , gas , uint256 . MustFromBig ( cfg . Value ) )
361+ Call (destination , nil , cfg )
367362
368363 b .Run (name , func (b * testing.B ) {
369364 b .ReportAllocs ()
370365 for i := 0 ; i < b .N ; i ++ {
371- vmenv . Call (sender , destination , nil , gas , uint256 . MustFromBig ( cfg . Value ) )
366+ Call (destination , nil , cfg )
372367 }
373368 })
374369}
0 commit comments