mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 08:31:16 +00:00
Further Improve Gov V2 Stuff (#12028)
* refactor and improve successful origin * use appropriate origin for creating referendum * fmt * add setup tally feature for benchmarks * feedback updates * fmt * Update frame/referenda/src/benchmarking.rs Co-authored-by: Gavin Wood <gavin@parity.io> * feedback on `setup` trait * fix Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
@@ -93,6 +93,9 @@ impl<
|
||||
let ayes = approval.mul_ceil(support);
|
||||
Self { ayes, nays: support - ayes, support, dummy: PhantomData }
|
||||
}
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
fn setup(_: Class, _: Perbill) {}
|
||||
}
|
||||
|
||||
impl<
|
||||
|
||||
Reference in New Issue
Block a user