Skip to content

Commit 64b9652

Browse files
committed
Fix test for simulation of storage deposit
1 parent 07bfbbb commit 64b9652

File tree

1 file changed

+4
-1
lines changed
  • tests/src/tests/defuse/storage

1 file changed

+4
-1
lines changed

tests/src/tests/defuse/storage/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,12 @@ async fn storage_deposit_success(
153153

154154
assert_eq!(data.get("account_id").unwrap(), &env.user2.id().to_string());
155155
assert_eq!(data.get("contract_id").unwrap(), &env.ft1.to_string());
156+
// This result does not make sense with respect to other contracts, because
157+
// other FT contracts only accept 0.00125 NEAR for storage deposits.
158+
// But this is just for this contract's simulation.
156159
assert_eq!(
157160
data.get("amount").unwrap(),
158-
&MIN_FT_STORAGE_DEPOSIT_VALUE.as_yoctonear().to_string()
161+
&amount_to_deposit.as_yoctonear().to_string()
159162
);
160163
}
161164

0 commit comments

Comments
 (0)