-
Notifications
You must be signed in to change notification settings - Fork 277
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
Add more data into the execution trace #20
Conversation
Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: Haichen Shen <[email protected]>
core/vm/logger_trace.go
Outdated
CREATE: {traceSenderAddress, traceNonce}, | ||
CREATE2: {traceSenderAddress}, |
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.
missing "created contract address’s accountProof"?
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.
Do both CREATE and CREATE2 need to be added?
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.
according to our https://www.notion.so/EVM-Trace-2e476641b6484b71a029c868516ad7b2, both CREATE
and CREATE2
core/vm/logger_trace.go
Outdated
CALL: {traceToAddressCodeHash, traceLastNAddressCodeHash(1), traceOriginProof, traceLastNAddressProof(1)}, | ||
CALLCODE: {traceToAddressCodeHash, traceLastNAddressCodeHash(1), traceOriginProof, traceLastNAddressProof(1)}, |
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.
using traceOriginProof
here can be wrong. caller may not be the tx sender.
we can retrieve caller_address using "ScopeContext.Contract.CallerAddress"
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 line can show origin is tx sender address.
But this's a mistake we only need contract caller proof, Don't tx's sender proof, that right?
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.
Yes, that's what I mean. We need caller instead of sender. sometime the caller is the sender, but sometimes not
If @ChuhanJin thinks it's urgent we can merge it now, but I think there are some mistakes in thi PR:
|
Co-authored-by: HAOYUatHZ <[email protected]>
Can one of the admins verify this patch? |
No description provided.