Skip to content

Commit

Permalink
fix: Fix storage management error message with proper amount (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauchaves authored Jul 31, 2024
1 parent 1a25837 commit 8933fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 {} to cover storage", required_cost.exact_amount_display())
);

let refund = attached_deposit.saturating_sub(required_cost);
Expand Down
2 changes: 1 addition & 1 deletion near-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 8933fe7

Please sign in to comment.