You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: substrate-node/pallets/pallet-smart-contract/src/billing.rs
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -362,8 +362,14 @@ impl<T: Config> Pallet<T> {
362
362
has_sufficient_fund:bool,
363
363
current_block:u64,
364
364
) -> DispatchResultWithPostInfo{
365
+
// Add a defensive check to prevent a node contract on a rented node from transitioning to 'created' status without considering the state of the associated rent contract
366
+
let rent_is_suspended = matches!(contract.contract_type, types::ContractData::NodeContract(_))
// Defensive check to prevent a node contract on a rented node from transitioning to 'created' status if there's an overdraft (unsettled public IP rent).
0 commit comments