-
Notifications
You must be signed in to change notification settings - Fork 51
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: namedtuple decoding for vvmcontract structs #356
base: master
Are you sure you want to change the base?
feat: namedtuple decoding for vvmcontract structs #356
Conversation
for item_abi in event_abi["inputs"]: | ||
is_topic = item_abi["indexed"] | ||
assert isinstance(is_topic, bool) | ||
if not is_topic: |
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.
double negatives are hard to read
boa/contracts/abi/abi_contract.py
Outdated
|
||
decoded_args = abi_decode(args_selector, data) | ||
|
||
t_i = 0 |
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.
topic_index and arg_index would be much easier to read
ret[event_id] = event_abi | ||
return ret | ||
|
||
def decode_log(self, log_entry): |
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 function does too many things imo it should be splitted
What I did
handle_error()
in VVMDeployer.deploy() to properly raise BoaErrors that occur in the ctorHow I did it
How to verify it
Description for the changelog
Cute Animal Picture