Skip to content

Commit e3686ec

Browse files
fix: potential recursive call (#303)
1 parent 96f4fcb commit e3686ec

File tree

1 file changed

+1
-3
lines changed
  • substrate-node/pallets/pallet-smart-contract/src

1 file changed

+1
-3
lines changed

substrate-node/pallets/pallet-smart-contract/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,8 @@ impl<T: Config> Module<T> {
738738

739739
// If total balance exceeds the twin's balance, we can decomission contract
740740
if decomission {
741-
return Self::_cancel_contract(
742-
twin.account_id,
741+
Self::remove_contract(
743742
contract.contract_id,
744-
types::Cause::OutOfFunds,
745743
);
746744
}
747745

0 commit comments

Comments
 (0)