Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-burnt committed Aug 12, 2024
1 parent 0cebe29 commit 41eb0a6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions contracts/treasury/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,24 +160,6 @@ pub fn deploy_fee_grant(
if grant_config.authorization.ne(auth) {
return Err(AuthzGrantMismatch);
}
// if grants.clone().is_empty() && !grant_config.optional {
// return Err(AuthzGrantNotFound { msg_type_url });
// } else {
// match grants.first() {
// None => return Err(AuthzGrantNotFound { msg_type_url }),
// Some(grant) => {
// match grant.clone().authorization {
// None => return Err(AuthzGrantNotFound { msg_type_url }),
// Some(auth) => {
// // the authorization must match the one in the config
// if grant_config.authorization.ne(&auth.into()) {
// return Err(AuthzGrantMismatch);
// }
// }
// }
// }
// }
// }
}
// at this point, all the authz grants in the grant_config are verified

Expand Down

0 comments on commit 41eb0a6

Please sign in to comment.