File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/env/src/engine/off_chain Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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.
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| {
You can’t perform that action at this time.
0 commit comments