-
Notifications
You must be signed in to change notification settings - Fork 366
Update ics20 contract #631
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
Changes from all commits
2c0f985
ba811c0
523770b
48f29d3
0aff8cd
0cc42b9
3b5954e
65fcbf5
3839633
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,15 @@ pub enum ContractError { | |
|
|
||
| #[error("Got a submessage reply with unknown id: {id}")] | ||
| UnknownReplyId { id: u64 }, | ||
|
|
||
| #[error("You cannot lower the gas limit for a contract on the allow list")] | ||
| CannotLowerGas, | ||
|
|
||
| #[error("Only the governance contract can do this")] | ||
| Unauthorized, | ||
|
Comment on lines
+56
to
+57
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd incline to add some I stumbled upon many such errors and each time probably you need to look for answer in specific place in code to understand it "Only the governance contract can do this: ", {context: contract update}
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, that is why you append a string to a |
||
|
|
||
| #[error("You can only send cw20 tokens that have been explicitly allowed by governance")] | ||
| NotOnAllowList, | ||
| } | ||
|
|
||
| impl From<FromUtf8Error> for ContractError { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.