mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-12 09:55:43 +00:00
Fix code duplication in tests (#1575)
This commit is contained in:
committed by
GitHub
parent
756347ab24
commit
d81a2e2fa9
@@ -22,10 +22,7 @@ use crate::{
|
||||
use assert_matches::assert_matches;
|
||||
use keyring::Sr25519Keyring;
|
||||
use primitives::Hash;
|
||||
|
||||
fn validator_pubkeys(val_ids: &[Sr25519Keyring]) -> Vec<ValidatorId> {
|
||||
val_ids.iter().map(|v| v.public().into()).collect()
|
||||
}
|
||||
use test_helpers::validator_pubkeys;
|
||||
|
||||
#[test]
|
||||
fn tracker_earliest_block_number() {
|
||||
|
||||
Reference in New Issue
Block a user