Skip to content

Commit

Permalink
[token] add error wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
areshand committed Nov 1, 2022
1 parent 733f998 commit 7117d12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aptos-move/framework/aptos-token/sources/token.move
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ module aptos_token::token {
types: vector<String>,
): TokenId acquires Collections, TokenStore {
let creator = token_id.token_data_id.creator;
assert!(signer::address_of(account) == creator, ENO_MUTATE_CAPABILITY);
assert!(signer::address_of(account) == creator, error::permission_denied(ENO_MUTATE_CAPABILITY));
// validate if the properties is mutable
assert!(exists<Collections>(creator), ECOLLECTIONS_NOT_PUBLISHED);
assert!(exists<Collections>(creator), error::not_found(ECOLLECTIONS_NOT_PUBLISHED));
let all_token_data = &mut borrow_global_mut<Collections>(
creator
).token_data;
Expand Down

0 comments on commit 7117d12

Please sign in to comment.