Skip to content

Commit

Permalink
pallet-conviction-voting: make the pallet instantiable (paritytech#11088
Browse files Browse the repository at this point in the history
)

* pallet-conviction-voting: make the pallet instanceable

Signed-off-by: koushiro <[email protected]>

* Add default type param for some type alias

Signed-off-by: koushiro <[email protected]>
  • Loading branch information
koushiro authored and ark0f committed Feb 27, 2023
1 parent 39dee42 commit 4e937a0
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 90 deletions.
4 changes: 2 additions & 2 deletions frame/conviction-voting/src/conviction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

//! The conviction datatype.
use crate::types::Delegations;
use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
use sp_runtime::{
traits::{Bounded, CheckedDiv, CheckedMul, Zero},
RuntimeDebug,
};
use sp_std::{convert::TryFrom, result::Result};

use crate::types::Delegations;

/// A value denoting the strength of conviction of a vote.
#[derive(
Expand Down
Loading

0 comments on commit 4e937a0

Please sign in to comment.