Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
  • Loading branch information
kostekIV committed Nov 17, 2022
commit 2b693d34411bb2a8dfc6e1656759d73047fca261
7 changes: 5 additions & 2 deletions bin/cliain/src/finalization.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use std::str::FromStr;

use aleph_client::{pallets::aleph::{AlephRpc, AlephSudoApi}, AccountId, AlephKeyPair, SignedConnection, TxStatus, Connection};
use aleph_client::{
pallets::aleph::{AlephRpc, AlephSudoApi},
AccountId, AlephKeyPair, Connection, SignedConnection, TxStatus,
};
use primitives::{BlockHash, BlockNumber};

use crate::RootConnection;
Expand All @@ -21,7 +24,7 @@ pub async fn finalize(
key_pair: AlephKeyPair,
) {
let hash = BlockHash::from_str(&hash).expect("Hash is properly hex encoded");
connection
connection
.emergency_finalize(number, hash, key_pair)
.await
.unwrap();
Expand Down