-
Notifications
You must be signed in to change notification settings - Fork 14
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
Contract pausing #6
Conversation
@@ -0,0 +1,3 @@ | |||
pub fn option_to_string<T: ToString>(value: Option<T>) -> 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.
This is usable sometimes in contract events and attributes when we want to convert Option<T>
to string, so it says "none"
when None
and does .to_string() for Some
case.
@@ -1,6 +1,8 @@ | |||
use cosmwasm_std::{Addr, Deps, Env}; | |||
use cosmwasm_std::{StdError, StdResult}; | |||
|
|||
const ERR_NOT_SUPER_ADMIN: &str = "[FET_ERR_NOT_SUPER_ADMIN] Sender is not a super-admin."; |
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.
Unified error handling, I think we should be using this convention everywhere.
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.
See the inline 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.
LGTM
No description provided.