mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 23:01:01 +00:00
pallet-contracts: Refactor and comment rent module. (#4733)
* Refactor and comment `rent` module. * impl_version bump * Add doc for Exempt * Simplify code. * Update bin/node/runtime/src/lib.rs Co-Authored-By: thiolliere <gui.thiolliere@gmail.com> * Update frame/contracts/src/exec.rs Co-Authored-By: Hero Bird <robin.freyler@gmail.com> Co-authored-by: thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Hero Bird <robbepop@web.de>
This commit is contained in:
@@ -356,10 +356,10 @@ where
|
||||
});
|
||||
}
|
||||
|
||||
// Assumption: pay_rent doesn't collide with overlay because
|
||||
// pay_rent will be done on first call and dest contract and balance
|
||||
// Assumption: `collect_rent` doesn't collide with overlay because
|
||||
// `collect_rent` will be done on first call and destination contract and balance
|
||||
// cannot be changed before the first call
|
||||
let contract_info = rent::pay_rent::<T>(&dest);
|
||||
let contract_info = rent::collect_rent::<T>(&dest);
|
||||
|
||||
// Calls to dead contracts always fail.
|
||||
if let Some(ContractInfo::Tombstone(_)) = contract_info {
|
||||
|
||||
Reference in New Issue
Block a user