eth/tracers: report correct gasLimit in call tracers (#27029)

This includes a semantic change to the `callTracer` as well as `flatCallTracer`.
The value of field `gas` in the **first** call frame will change as follows:

- It previously contained gas available after initial deductions (i.e. tx costs)
- It will now contain the full tx gasLimit value

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng
2023-04-04 12:34:23 +02:00
committed by GitHub
parent d2cf49327f
commit 0b76eb3708
69 changed files with 74 additions and 74 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func (t *callTracer) CaptureStart(env *vm.EVM, from common.Address, to common.Ad
From: from,
To: &toCopy,
Input: common.CopyBytes(input),
Gas: gas,
Gas: t.gasLimit,
Value: value,
}
if create {