Skip to content

Commit

Permalink
chore: fix naming of session keys (#4242)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen authored Nov 14, 2023
1 parent 7101e2a commit 455bf9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ pub trait OperatorApi: SignedExtrinsicApi + RotateSessionKeysApi + AuctionPhaseA
}

async fn rotate_session_keys(&self) -> Result<H256> {
let seed = RotateSessionKeysApi::rotate_session_keys(self)
let raw_keys = RotateSessionKeysApi::rotate_session_keys(self)
.await
.context("Could not rotate session keys.")?;

let aura_key: [u8; 32] = seed[0..32].try_into().unwrap();
let grandpa_key: [u8; 32] = seed[32..64].try_into().unwrap();
let aura_key: [u8; 32] = raw_keys[0..32].try_into().unwrap();
let grandpa_key: [u8; 32] = raw_keys[32..64].try_into().unwrap();

let (tx_hash, ..) = self
.submit_signed_extrinsic(pallet_cf_validator::Call::set_keys {
Expand Down

0 comments on commit 455bf9b

Please sign in to comment.