From afb2b0f7b3f5981a45b6f2bf0a7bd0f807b17047 Mon Sep 17 00:00:00 2001 From: Ninjatosba Date: Sat, 17 Feb 2024 12:45:18 +0300 Subject: [PATCH] fix zero payments --- contracts/minters/minter/src/contract.rs | 25 +++++++++++-------- .../minters/multi-mint-oem/src/contract.rs | 24 ++++++++++-------- .../open-edition-minter/src/contract.rs | 23 +++++++++-------- 3 files changed, 39 insertions(+), 33 deletions(-) diff --git a/contracts/minters/minter/src/contract.rs b/contracts/minters/minter/src/contract.rs index 9c46644..ab316a4 100644 --- a/contracts/minters/minter/src/contract.rs +++ b/contracts/minters/minter/src/contract.rs @@ -8,7 +8,7 @@ use cosmwasm_std::{ to_json_binary, Addr, Binary, Coin, CosmosMsg, Decimal, Deps, DepsMut, Env, MessageInfo, Order, Response, StdResult, Uint128, WasmMsg, }; -use cw_utils::{maybe_addr, must_pay, nonpayable}; +use cw_utils::{may_pay, maybe_addr, must_pay, nonpayable}; use minter_types::{generate_mint_message, CollectionDetails}; use omniflix_minter_factory::msg::QueryMsg::Params as QueryFactoryParams; use omniflix_minter_factory::msg::{CreateMinterMsg, ParamsResponse}; @@ -338,7 +338,7 @@ pub fn execute_mint(deps: DepsMut, env: Env, info: MessageInfo) -> Result Result Result Result