Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Bump Substrate and Deps (#91)
Browse files Browse the repository at this point in the history
* Bump Substrate and Deps

* Bump Substrate again in order to include a hot-fix

* redo again

* use CryptoStore issue

* cargo fmt
  • Loading branch information
adoerr authored Feb 27, 2021
1 parent 442c741 commit 66b2b8d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,19 @@ where
validator_set_id: 0,
};

// TODO #92
let signature = match SyncCryptoStore::sign_with(
&*self.key_store,
KEY_TYPE,
&local_id.to_public_crypto_pair(),
&commitment.encode(),
)
.map_err(|_| ())
.and_then(|res| res.try_into().map_err(|_| ()))
{
.and_then(|res| {
res.expect("closure won't be called in case of an error; qed")
.try_into()
.map_err(|_| ())
}) {
Ok(sig) => sig,
Err(err) => {
warn!(target: "beefy", "Error signing: {:?}", err);
Expand Down

0 comments on commit 66b2b8d

Please sign in to comment.