Skip to content

Commit

Permalink
fix airdrop price
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Sep 30, 2023
1 parent 4fc25b1 commit 5967d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/minters/open-edition-minter/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ fn _execute_mint(

let mint_price: Coin = mint_price(deps.as_ref(), is_admin)?;
// Exact payment only accepted
let payment = may_pay(&info, &config.mint_price.denom)?;
let payment = may_pay(&info, &mint_price.denom)?;
if payment != mint_price.amount {
return Err(ContractError::IncorrectPaymentAmount(
coin(payment.u128(), &config.mint_price.denom),
Expand Down Expand Up @@ -629,7 +629,7 @@ pub fn mint_price(deps: Deps, is_admin: bool) -> Result<Coin, StdError> {
let factory_params = factory.params;
Ok(coin(
factory_params.extension.airdrop_mint_price.amount.u128(),
config.mint_price.denom,
factory_params.extension.airdrop_mint_price.denom,
))
} else {
Ok(config.mint_price)
Expand Down

0 comments on commit 5967d62

Please sign in to comment.