-
Notifications
You must be signed in to change notification settings - Fork 9
contracts/ccip/ccip: validate account address lengths #220
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
base: develop
Are you sure you want to change the base?
Conversation
| pad_svm_address(&mut token_receiver); | ||
| assert!( | ||
| token_receiver.length() == 32, | ||
| error::invalid_argument(E_INVALID_SVM_TOKEN_RECEIVER_LENGTH) |
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 prefer not to use these error::() wrappers as it makes writing test cases harder, as it will produce an erroneous error code which you have to convert from decimal to hex.
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.
we are consistently using them across CCIP though
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 see, we can keep this for now
No description provided.