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

Fix contract function name collision #3147

Merged
merged 9 commits into from Nov 15, 2023

Conversation

reedsa
Copy link
Contributor

@reedsa reedsa commented Nov 8, 2023

What was wrong?

Closes #2955

Could not push to the fork, this is continued from #2956.

How was it fixed?

Addressed name collision for w3 variable name when initializing a contract by using the argument provided in the init function itself.

Also fixed async, which suffered from the same issue.

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@reedsa reedsa force-pushed the fix-contract-function-name-collision branch 2 times, most recently from cc32b59 to 8fbb7f6 Compare November 9, 2023 20:16
@reedsa reedsa force-pushed the fix-contract-function-name-collision branch from 6a1080c to d1786cd Compare November 10, 2023 18:57
@reedsa reedsa force-pushed the fix-contract-function-name-collision branch from 70e9cc1 to f812c43 Compare November 10, 2023 21:27
@reedsa reedsa force-pushed the fix-contract-function-name-collision branch from f812c43 to 0ee00db Compare November 10, 2023 22:54
@reedsa reedsa requested review from fselmo and pacrob November 10, 2023 23:59
Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

I left some nits, let me know what you think on those. We should add the async version of the main ABI test here too though before merging.

tests/core/contracts/test_contract_class_construction.py Outdated Show resolved Hide resolved
tests/core/contracts/conftest.py Outdated Show resolved Hide resolved
@reedsa reedsa force-pushed the fix-contract-function-name-collision branch from 4e6c9d4 to 690ea18 Compare November 13, 2023 15:13
@reedsa reedsa force-pushed the fix-contract-function-name-collision branch from 690ea18 to 9318da4 Compare November 15, 2023 10:09
@reedsa reedsa requested a review from fselmo November 15, 2023 11:01
Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

👌🏼

@reedsa reedsa merged commit 0302d37 into ethereum:main Nov 15, 2023
89 checks passed
@reedsa reedsa deleted the fix-contract-function-name-collision branch November 15, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants