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

Commit 4df1a87

Browse files
agryaznovgpestana
authored andcommitted
fix a test (#14021)
1 parent 7ddac2d commit 4df1a87

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

frame/contracts/src/tests.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4341,12 +4341,9 @@ fn deposit_limit_in_nested_instantiate() {
43414341
// - callee instantiation deposit = (callee_info_len + 2)
43424342
// - callee account ED
43434343
// - for writing an item of 1 byte to storage = 3 Balance
4344-
//
4345-
// Still, the latter is to be charged at the end of the call stack, hence
4346-
// only (callee_info_len + 2 + ED) is charged so far
43474344
assert_eq!(
43484345
<Test as Config>::Currency::free_balance(&BOB),
4349-
1_000_000 - (callee_info_len + 2 + ED)
4346+
1_000_000 - (callee_info_len + 2 + ED + 3)
43504347
);
43514348
// Check that deposit due to be charged still includes these 3 Balance
43524349
assert_eq!(result.storage_deposit.charge_or_zero(), (callee_info_len + 2 + ED + 3),)

0 commit comments

Comments
 (0)