Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 87f920c

Browse files
shawntabriziParity Bot
andcommitted
Emit Bonded event when rebonding (#9040)
* Emit `Bonded` event when rebonding * fix borrow checker * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by: Parity Bot <[email protected]>
1 parent 0168dcb commit 87f920c

File tree

2 files changed

+110
-109
lines changed

2 files changed

+110
-109
lines changed

frame/staking/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,7 @@ decl_module! {
18221822
// last check: the new active amount of ledger must be more than ED.
18231823
ensure!(ledger.active >= T::Currency::minimum_balance(), Error::<T>::InsufficientValue);
18241824

1825+
Self::deposit_event(RawEvent::Bonded(ledger.stash.clone(), value));
18251826
Self::update_ledger(&controller, &ledger);
18261827
Ok(Some(
18271828
35 * WEIGHT_PER_MICROS

0 commit comments

Comments
 (0)