From c1f7bad09b2c6b0f03abe84880305001d1c7c7a2 Mon Sep 17 00:00:00 2001 From: lauchaves Date: Tue, 30 Jul 2024 23:53:41 -0600 Subject: [PATCH] 1160: Fix msg with proper amount --- near-contract-standards/src/non_fungible_token/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/near-contract-standards/src/non_fungible_token/utils.rs b/near-contract-standards/src/non_fungible_token/utils.rs index bdee20b2e..ecc25de5c 100644 --- a/near-contract-standards/src/non_fungible_token/utils.rs +++ b/near-contract-standards/src/non_fungible_token/utils.rs @@ -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);