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
feat: spike out what unit testing puyapy contracts could look like #117
Conversation
6ac1fe5
to
7812faf
Compare
elif isinstance(a, (int, UInt64)): | ||
address = str(a) | ||
|
||
return UInt64(active_ctx().get_balance(address, int(b))), False |
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.
@neilcampbell what happens when a is of type UInt64? Wouldn't address be None in this case ?
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.
Yeah this code is very wrong, so we'll need to handle int/UInt64 address values properly.
Closing this, as it has served it's purpose. |
No description provided.