mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 22:01:04 +00:00
Minor fixes (#3751)
* fix warning * use compact for balance type * bump version
This commit is contained in:
committed by
Shawn Tabrizi
parent
97328ee6bb
commit
67a4bc4bdd
@@ -181,7 +181,7 @@ decl_module! {
|
||||
/// Writes: O(V) given `V` votes. V is bounded by 16.
|
||||
/// # </weight>
|
||||
#[weight = SimpleDispatchInfo::FixedNormal(100_000)]
|
||||
fn vote(origin, votes: Vec<T::AccountId>, value: BalanceOf<T>) {
|
||||
fn vote(origin, votes: Vec<T::AccountId>, #[compact] value: BalanceOf<T>) {
|
||||
let who = ensure_signed(origin)?;
|
||||
|
||||
let candidates_count = <Candidates<T>>::decode_len().unwrap_or(0) as usize;
|
||||
|
||||
Reference in New Issue
Block a user