-
Notifications
You must be signed in to change notification settings - Fork 117
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
BBB-01 | Lack Of Input Validation #3171 #3279
base: future/peggy2
Are you sure you want to change the base?
Conversation
Added input validation on BridgeBank _initialize function.
Should we also add:
|
And should we shorten the error strings?
|
require(_operator != address(0), "invalid _operator address"); | ||
require(_cosmosBridgeAddress != address(0), "invalid _cosmosBridgeAddress address"); | ||
require(_owner != address(0), "invalid _owner address"); | ||
require(_networkDescriptor >= 0 && _networkDescriptor <= 9999, "invalid _networkDescriptor"); |
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.
network descriptor of 0 shouldn't be allowed. It is the default when not specified.
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.
Not required for this ticket, we should add the same checks for
Null address is a valid RowanAddress as this value would only be set on Ethereum which is the network which held eRowan. |
Added input validation on BridgeBank _initialize function.