Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix a test (#14021)
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov authored Apr 26, 2023
1 parent 7ddfdfb commit 154448b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frame/contracts/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4341,12 +4341,9 @@ fn deposit_limit_in_nested_instantiate() {
// - callee instantiation deposit = (callee_info_len + 2)
// - callee account ED
// - for writing an item of 1 byte to storage = 3 Balance
//
// Still, the latter is to be charged at the end of the call stack, hence
// only (callee_info_len + 2 + ED) is charged so far
assert_eq!(
<Test as Config>::Currency::free_balance(&BOB),
1_000_000 - (callee_info_len + 2 + ED)
1_000_000 - (callee_info_len + 2 + ED + 3)
);
// Check that deposit due to be charged still includes these 3 Balance
assert_eq!(result.storage_deposit.charge_or_zero(), (callee_info_len + 2 + ED + 3),)
Expand Down

0 comments on commit 154448b

Please sign in to comment.