Skip to content

Commit

Permalink
1160: Fix msg with proper amount
Browse files Browse the repository at this point in the history
  • Loading branch information
lauchaves authored and lauchaves committed Jul 31, 2024
1 parent 0f46b0d commit c1f7bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion near-contract-standards/src/non_fungible_token/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn refund_deposit_to_account(storage_used: u64, account_id: AccountId) {

require!(
required_cost <= attached_deposit,
format!("Must attach {} yoctoNEAR to cover storage", required_cost)
format!("Must attach {} yoctoNEAR to cover storage", required_cost.exact_amount_display())
);

let refund = attached_deposit.saturating_sub(required_cost);
Expand Down

0 comments on commit c1f7bad

Please sign in to comment.