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

add kwarg nowarn=False to .at() #376

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

sometimes you want to suppress the warning on purpose (like for minimal proxy contracts)

What I did

How I did it

How to verify it

Description for the changelog

Cute Animal Picture

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

sometimes you want to suppress the warning on purpose (like for minimal
proxy contracts)
@@ -117,13 +117,13 @@ def stomp(self, address: Any, data_section=None) -> "VyperContract":
return ret

# TODO: allow `env=` kwargs and so on
def at(self, address: Any) -> "VyperContract":
def at(self, address: Any, nowarn=False) -> "VyperContract":
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO more specific is better

Suggested change
def at(self, address: Any, nowarn=False) -> "VyperContract":
def at(self, address: Any, check_bytecode=True) -> "VyperContract":

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.

2 participants