From 88150e83d280b741af26cdb9489ae8fd18e1e835 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 6 Nov 2019 00:09:04 +1300 Subject: [PATCH] add comments for WonRenewal event (#533) * add comments for WonRenewal event * make event argument order consistent --- polkadot/runtime/src/slots.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polkadot/runtime/src/slots.rs b/polkadot/runtime/src/slots.rs index 0d19b72d29..bb29162b6a 100644 --- a/polkadot/runtime/src/slots.rs +++ b/polkadot/runtime/src/slots.rs @@ -212,6 +212,7 @@ decl_event!( /// Someone won the right to deploy a parachain. Balance amount is deducted for deposit. WonDeploy(NewBidder, SlotRange, ParaId, Balance), /// An existing parachain won the right to continue. + /// First balance is the extra amount reseved. Second is the total amount reserved. WonRenewal(ParaId, SlotRange, Balance, Balance), /// Funds were reserved for a winning bid. First balance is the extra amount reserved. /// Second is the total. @@ -552,7 +553,7 @@ impl Module { } else { Default::default() }; - Self::deposit_event(RawEvent::WonRenewal(para_id, range, amount, extra)); + Self::deposit_event(RawEvent::WonRenewal(para_id, range, extra, amount)); } }