mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 12:51:02 +00:00
Upgrade bitvec and parity-scale-codec (#947)
This commit is contained in:
@@ -168,7 +168,7 @@ impl<T: Trait> Module<T> {
|
||||
let attesting_indices = head.validator_indices
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter(|(_, bit)| *bit)
|
||||
.filter(|(_, bit)| **bit)
|
||||
.inspect(|&(auth_index, _)| {
|
||||
if let Some(stash_id) = validators.get(auth_index) {
|
||||
valid.push(stash_id.clone());
|
||||
|
||||
@@ -964,7 +964,7 @@ impl<T: Trait> Module<T> {
|
||||
for (vote_index, (auth_index, _)) in candidate.validator_indices
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter(|(_, bit)| *bit)
|
||||
.filter(|(_, bit)| **bit)
|
||||
.enumerate()
|
||||
{
|
||||
let validity_attestation = match candidate.validity_votes.get(vote_index) {
|
||||
@@ -1200,7 +1200,7 @@ mod tests {
|
||||
use sp_trie::NodeCodec;
|
||||
use sp_runtime::{
|
||||
impl_opaque_keys,
|
||||
Perbill, curve::PiecewiseLinear, testing::{Header},
|
||||
Perbill, curve::PiecewiseLinear, testing::Header,
|
||||
traits::{
|
||||
BlakeTwo256, IdentityLookup, SaturatedConversion,
|
||||
OpaqueKeys,
|
||||
|
||||
Reference in New Issue
Block a user