From 8933fe729f8ff128e680b165f0df3ba03c83efd0 Mon Sep 17 00:00:00 2001 From: Lau Chaves Date: Wed, 31 Jul 2024 12:52:14 -0600 Subject: [PATCH] fix: Fix storage management error message with proper amount (#1222) --- near-contract-standards/src/non_fungible_token/utils.rs | 2 +- near-sdk/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/near-contract-standards/src/non_fungible_token/utils.rs b/near-contract-standards/src/non_fungible_token/utils.rs index bdee20b2e..797ab71b5 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 {} to cover storage", required_cost.exact_amount_display()) ); let refund = attached_deposit.saturating_sub(required_cost); diff --git a/near-sdk/Cargo.toml b/near-sdk/Cargo.toml index e2e4393c4..c94aa12e1 100644 --- a/near-sdk/Cargo.toml +++ b/near-sdk/Cargo.toml @@ -32,7 +32,7 @@ once_cell = { version = "1.17", default-features = false } near-account-id = { version = "1.0.0", features = ["serde", "borsh"] } near-gas = { version = "0.2.3", features = ["serde", "borsh"] } -near-token = { version = "0.2.0", features = ["serde", "borsh"] } +near-token = { version = "0.2.1", features = ["serde", "borsh"] } [target.'cfg(target_arch = "wasm32")'.dependencies] wee_alloc = { version = "0.4.5", default-features = false, optional = true }