Skip to content
Snippets Groups Projects
Commit 4cbd03f6 authored by Sergey Pepyakin's avatar Sergey Pepyakin Committed by GitHub
Browse files

Small follow-up docs improvements in rent module (#4790)


* Small follow-up docs improvements in rent module

* Update frame/contracts/src/rent.rs

Co-Authored-By: default avatarthiolliere <gui.thiolliere@gmail.com>

* Use a shorter version of the sentence

Co-authored-by: default avatarthiolliere <gui.thiolliere@gmail.com>
parent df6ef178
No related merge requests found
......@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
//! A module responsible for computing the right amount of weight and charging it.
use crate::{
AliveContractInfo, BalanceOf, ContractInfo, ContractInfoOf, Module, RawEvent,
TombstoneContractInfo, Trait,
......@@ -130,8 +132,8 @@ fn rent_budget<T: Trait>(
/// Consider the case for rent payment of the given account and returns a `Verdict`.
///
/// The `current_block_number` must be equal to the current block number. Use `handicap` do
/// change the reference block number. (See `snitch_contract_should_be_evicted` for more details).
/// Use `handicap` in case you want to change the reference block number. (To get more details see
/// `snitch_contract_should_be_evicted` ).
fn consider_case<T: Trait>(
account: &T::AccountId,
current_block_number: T::BlockNumber,
......@@ -285,7 +287,7 @@ pub fn collect_rent<T: Trait>(account: &T::AccountId) -> Option<ContractInfo<T>>
enact_verdict(account, alive_contract_info, current_block_number, verdict)
}
/// Process a snitch that a contract under the given address should be evicted.
/// Process a report that a contract under the given address should be evicted.
///
/// Enact the eviction right away if the contract should be evicted and return true.
/// Otherwise, **do nothing** and return false.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment