mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "eth/tracers/js: use t.toBig on ctx.GasPrice for js tracing (#27903)"
This reverts commit 77b5584250.
This commit is contained in:
parent
ec712473e2
commit
295af6983b
1 changed files with 1 additions and 6 deletions
|
|
@ -236,12 +236,7 @@ func (t *jsTracer) CaptureStart(env *vm.EVM, from common.Address, to common.Addr
|
||||||
t.ctx["to"] = t.vm.ToValue(to.Bytes())
|
t.ctx["to"] = t.vm.ToValue(to.Bytes())
|
||||||
t.ctx["input"] = t.vm.ToValue(input)
|
t.ctx["input"] = t.vm.ToValue(input)
|
||||||
t.ctx["gas"] = t.vm.ToValue(t.gasLimit)
|
t.ctx["gas"] = t.vm.ToValue(t.gasLimit)
|
||||||
gasPriceBig, err := t.toBig(t.vm, env.TxContext.GasPrice.String())
|
t.ctx["gasPrice"] = t.vm.ToValue(env.TxContext.GasPrice)
|
||||||
if err != nil {
|
|
||||||
t.err = err
|
|
||||||
return
|
|
||||||
}
|
|
||||||
t.ctx["gasPrice"] = gasPriceBig
|
|
||||||
valueBig, err := t.toBig(t.vm, value.String())
|
valueBig, err := t.toBig(t.vm, value.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.err = err
|
t.err = err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue