|
|
|
@ -105,7 +105,7 @@ func TestExecute(t *testing.T) { |
|
|
|
|
|
|
|
|
|
func TestCall(t *testing.T) { |
|
|
|
|
state, _ := state.New(types.EmptyRootHash, state.NewDatabase(rawdb.NewMemoryDatabase()), nil) |
|
|
|
|
address := common.HexToAddress("0x0a") |
|
|
|
|
address := common.HexToAddress("0xaa") |
|
|
|
|
state.SetCode(address, []byte{ |
|
|
|
|
byte(vm.PUSH1), 10, |
|
|
|
|
byte(vm.PUSH1), 0, |
|
|
|
@ -725,7 +725,7 @@ func TestRuntimeJSTracer(t *testing.T) { |
|
|
|
|
byte(vm.CREATE), |
|
|
|
|
byte(vm.POP), |
|
|
|
|
}, |
|
|
|
|
results: []string{`"1,1,952855,6,12"`, `"1,1,952855,6,0"`}, |
|
|
|
|
results: []string{`"1,1,952853,6,12"`, `"1,1,952853,6,0"`}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
// CREATE2
|
|
|
|
@ -741,7 +741,7 @@ func TestRuntimeJSTracer(t *testing.T) { |
|
|
|
|
byte(vm.CREATE2), |
|
|
|
|
byte(vm.POP), |
|
|
|
|
}, |
|
|
|
|
results: []string{`"1,1,952846,6,13"`, `"1,1,952846,6,0"`}, |
|
|
|
|
results: []string{`"1,1,952844,6,13"`, `"1,1,952844,6,0"`}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
// CALL
|
|
|
|
|