mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 13:06:40 +00:00
js/tracers: make calltracer report value in selfdestructs (#21549)
This commit is contained in:
parent
4eb9296910
commit
71c37d82ad
1 changed files with 8 additions and 1 deletions
|
|
@ -61,7 +61,14 @@
|
||||||
if (this.callstack[left-1].calls === undefined) {
|
if (this.callstack[left-1].calls === undefined) {
|
||||||
this.callstack[left-1].calls = [];
|
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
|
return
|
||||||
}
|
}
|
||||||
// If a new method invocation is being done, add to the call stack
|
// If a new method invocation is being done, add to the call stack
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue