-
Notifications
You must be signed in to change notification settings - Fork 4
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
Convert wormhole payload to borsh #109
Conversation
@kiseln could you please fix the conflicts |
} | ||
#[derive(Debug, BorshDeserialize)] | ||
struct FinTransferWh { | ||
_token: String, |
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.
lets add the type (first byte) to this struct and move the verification to the try_into.
see this #106 (comment)
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.
I still like verifying inside verify_vaa_callback
. We can forget and remove the check inside the conversion methods and introduce a vulnerability this way. However, I don't mind making this check in both places
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.
@kiseln please apply the fmt |
Done |
No description provided.