Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Apr 19, 2024
1 parent bf1fa86 commit 964af19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetch/cosmwasm_contract/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ pub fn instantiate(
info: MessageInfo,
msg: InstantiateMsg,
) -> StdResult<Response> {
let supply = amount_from_funds(&info.funds, msg.get_denom()).unwrap_or(Uint128::zero());
let supply =
amount_from_funds(&info.funds, msg.get_denom()).unwrap_or_else(|_| Uint128::zero());
initialise_contract_state(
deps.storage,
&env,
Expand Down

0 comments on commit 964af19

Please sign in to comment.