Skip to content

Commit a31fcc5

Browse files
committed
Removed the 0 from the check to reap the account
1 parent f0a0354 commit a31fcc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/env/src/engine/off_chain/test_api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -57,8 +57,8 @@ where
5757
T: Environment<Balance = u128>, // Just temporary for the MVP!
5858
{
5959
let min = ChainSpec::default().minimum_balance;
60-
if new_balance < T::Balance::from(min) {
61-
panic!("balance must be at least [{}]", min);
60+
if new_balance < T::Balance::from(min) && new_balance != 0.into(){
61+
panic!("Balance must be at least [{}]. Use 0 as balance to reap the account.", min);
6262
}
6363

6464
<EnvInstance as OnInstance>::on_instance(|instance| {

0 commit comments

Comments
 (0)