good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 71c37d82 authored by Julian Koh's avatar Julian Koh Committed by GitHub
Browse files

js/tracers: make calltracer report value in selfdestructs (#21549)

parent 4eb92969
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,14 @@
if (this.callstack[left-1].calls === undefined) {
this.callstack[left-1].calls = [];
}
this.callstack[left-1].calls.push({type: op});
this.callstack[left-1].calls.push({
type: op,
from: toHex(log.contract.getAddress()),
to: toHex(toAddress(log.stack.peek(0).toString(16))),
gasIn: log.getGas(),
gasCost: log.getCost(),
value: '0x' + db.getBalance(log.contract.getAddress()).toString(16)
});
return
}
// If a new method invocation is being done, add to the call stack
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment