Add an OnUnbalanced hook for contract rent payments (#3857)

* Add RentPayment trait to runtime

* clarify check

* improve proof

* Clarify further

* Simplify RentPayment::on_unbalance calling and get rid of NonZeroRentHook
This commit is contained in:
Ashley
2019-10-23 11:02:30 +01:00
committed by Gavin Wood
parent 5e889431d3
commit 968b24d849
4 changed files with 10 additions and 3 deletions
+1
View File
@@ -159,6 +159,7 @@ impl Trait for Test {
type ComputeDispatchFee = DummyComputeDispatchFee;
type TrieIdGenerator = DummyTrieIdGenerator;
type GasPayment = ();
type RentPayment = ();
type SignedClaimHandicap = SignedClaimHandicap;
type TombstoneDeposit = TombstoneDeposit;
type StorageSizeOffset = StorageSizeOffset;