-
Notifications
You must be signed in to change notification settings - Fork 248
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
decode option event arg #158
Conversation
@gregdhill it looks like you have not signed our contributor license aggreement yet. Please visit this link to sign our agreement. This pull request cannot be merged until the agrement is signed. |
@gregdhill, Your signature has been received. |
Can you run cargo +nightly fmt and push? |
Looks reasonable to me, thanks! @ascjones is the repo master |
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.
Thanks for this - but from what I can tell it might not work because the Option
is not decoded correctly, i.e. it should first read the leading byte. If you've tested it and it works happy to be proved wrong.
Thanks for the feedback @ascjones, admittedly I had not dug deep enough into the serialization logic so I appreciate the guidance. I've updated the PR so please let me know what you think! |
Signed-off-by: Gregory Hill <[email protected]>
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.
LGTM
Signed-off-by: Gregory Hill [email protected]
A lot of code shift here is due to
cargo fmt
, I can revert this if needs be. The main change here is to enableOption
decoding, required for PolkaBTC.EDIT:
cargo +nightly fmt
fixed it, thanks @dvc94ch