We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a4f54 commit b66ab60Copy full SHA for b66ab60
contracts/treasury/src/execute.rs
@@ -277,8 +277,12 @@ pub fn deploy_fee_grant(
277
let response = QueryGrantsResponse::decode(authz_query_res.as_slice())?;
278
let grants = response.grants;
279
280
- if grants.clone().is_empty() && !grant_config.optional {
281
- return Err(AuthzGrantNotFound { msg_type_url });
+ if grants.clone().is_empty() {
+ if grant_config.optional {
282
+ continue;
283
+ } else {
284
+ return Err(AuthzGrantNotFound { msg_type_url });
285
+ }
286
} else {
287
match grants.first() {
288
None => return Err(AuthzGrantNotFound { msg_type_url }),
0 commit comments