Skip to content

Commit

Permalink
fix mint authorization check
Browse files Browse the repository at this point in the history
  • Loading branch information
kwtalley committed Sep 29, 2023
1 parent 80f4a5a commit 645b628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/nft/src/core/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ pub const EVENT_SEND_TOKEN_ID: &str = TOKEN_ID;
// Transfer Event
pub const EVENT_TRANSFER: &str = ACTION_TYPE_TRANSFER;
pub const EVENT_TRANSFER_RECIPIENT: &str = RECIPIENT;
pub const EVENT_TRANSFER_TOKEN_ID: &str = TOKEN_ID;
pub const EVENT_TRANSFER_TOKEN_ID: &str = TOKEN_ID;
3 changes: 2 additions & 1 deletion contracts/nft/src/execute/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ use crate::{

pub fn handle(
deps: DepsMut,
_info: MessageInfo,
info: MessageInfo,
env: Env,
token_id: Uuid,
session_uuid: Uuid,
recipient: Addr,
) -> Result<Response, ContractError> {
cw_ownable::assert_owner(deps.storage, &info.sender)?;
let state = storage::state::get(deps.storage)?;
let contract_spec_uuid = Uuid::from_str(&state.contract_spec_uuid).unwrap();
let scope_spec_uuid = Uuid::from_str(&state.scope_spec_uuid).unwrap();
Expand Down

0 comments on commit 645b628

Please sign in to comment.