Skip to content
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

analyzer: fix evm.Create result type cutting #403

Merged
merged 1 commit into from
May 4, 2023
Merged

Conversation

pro-wh
Copy link
Collaborator

@pro-wh pro-wh commented May 3, 2023

the result is the address, not the address embedded in a 256-bit thing. just the address. don't look for 32 bytes, don't cut it.

tested on a recent evm.Create transaction that occurred on mainnet Emerald, verified that the to column in the runtime_transactions table was populated, verified eth addresses displayed in API against another block explorer

@pro-wh pro-wh requested review from aefhm, Andrew7234 and mitjat as code owners May 3, 2023 23:01
Copy link
Collaborator

@Andrew7234 Andrew7234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o thanks for catching this!

Copy link
Contributor

@mitjat mitjat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice sleuthing! Thank you!

Can you describe testing in the PR description please? I assume you did an e2e check, i.e. looked at the to field of a Create tx, as defined by our docs?

In the near future we'll have a regression dataset checked in, and the changes to those files will be proof enough 👍

@pro-wh
Copy link
Collaborator Author

pro-wh commented May 4, 2023

oh I should make sure the API works too. I've only run the analyzer and looked in the database

@pro-wh
Copy link
Collaborator Author

pro-wh commented May 4, 2023

💀 the sender_0_eth and the to_eth are wrong

@pro-wh pro-wh force-pushed the pro-wh/bugfix/cleanup branch from 04ab871 to 1b079f5 Compare May 4, 2023 19:11
@pro-wh pro-wh force-pushed the pro-wh/bugfix/createcut branch from 31de271 to 0ff99d4 Compare May 4, 2023 19:11
@pro-wh pro-wh force-pushed the pro-wh/bugfix/cleanup branch from 1b079f5 to 326e664 Compare May 4, 2023 20:13
Base automatically changed from pro-wh/bugfix/cleanup to main May 4, 2023 20:22
@pro-wh pro-wh force-pushed the pro-wh/bugfix/createcut branch from 0ff99d4 to d5bc419 Compare May 4, 2023 20:23
@pro-wh
Copy link
Collaborator Author

pro-wh commented May 4, 2023

_eth addrs fixed in #406

@pro-wh pro-wh merged commit 614a824 into main May 4, 2023
@pro-wh pro-wh deleted the pro-wh/bugfix/createcut branch May 4, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants