New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eth/tracers: some simple adjustment for the testcase #29450
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
result: result, | ||
}; | ||
if (traceConfig) { | ||
data.tracerConfig = traceConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm I think this is wrong. traceConfig is here something like { tracer: 'callTracer', traceConfig: {...}}
. We should get the nested traceConfig.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, you're right, I forgot this one.
@@ -15,6 +15,9 @@ var makeTest = function(tx, traceConfig) { | |||
delete genesis.transactions; | |||
delete genesis.transactionsRoot; | |||
delete genesis.uncles; | |||
delete genesis.withdrawals; | |||
delete genesis.withdrawalsRoot; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like a change for the sake of change :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, I'm tracing another transaction, and the genesis includes lots of withdrawals
logs, seems a little redundant
Signed-off-by: jsvisa <delweng@gmail.com>
Made some simple adjustment for the trace testcase:
withdrawals{Root}
,genesis.baseFeePerGas
inmakeTest.js
;tracerConfig
inmaketest.js
is not null;tracerTestEnv
struct;