aboutsummaryrefslogtreecommitdiffstats
path: root/eth/tracers
diff options
context:
space:
mode:
authorPaweł Bylica <chfast@gmail.com>2018-09-08 00:13:25 +0800
committerGuillaume Ballet <gballet@gmail.com>2018-09-08 00:13:25 +0800
commitae992a5d73311742389fce3f855575be98fc6972 (patch)
tree3ec8d1c90aea8f5b90e8866ac67052cb83f0ad1b /eth/tracers
parent8b9b149d5412dd3c775caf4fc3df39ebad90184f (diff)
downloaddexon-ae992a5d73311742389fce3f855575be98fc6972.tar.gz
dexon-ae992a5d73311742389fce3f855575be98fc6972.tar.zst
dexon-ae992a5d73311742389fce3f855575be98fc6972.zip
core/vm: Hide read only flag from Interpreter interface (#17461)
Makes Interface interface a bit more stateless and abstract. Obviously this change is dictated by EVMC design. The EVMC tries to keep the responsibility for EVM features totally inside the VMs, if feasible. This makes VM "stateless" because VM does not need to pass any information between executions, all information is included in parameters of the execute function.
Diffstat (limited to 'eth/tracers')
-rw-r--r--eth/tracers/tracer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/tracers/tracer_test.go b/eth/tracers/tracer_test.go
index 117c376b8..58b624724 100644
--- a/eth/tracers/tracer_test.go
+++ b/eth/tracers/tracer_test.go
@@ -49,7 +49,7 @@ func runTrace(tracer *Tracer) (json.RawMessage, error) {
contract := vm.NewContract(account{}, account{}, big.NewInt(0), 10000)
contract.Code = []byte{byte(vm.PUSH1), 0x1, byte(vm.PUSH1), 0x1, 0x0}
- _, err := env.Interpreter().Run(contract, []byte{})
+ _, err := env.Interpreter().Run(contract, []byte{}, false)
if err != nil {
return nil, err
}