-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bridge signer pallet #85
base: develop
Are you sure you want to change the base?
Conversation
|
||
pub fn public(&self) -> MultiSigner { | ||
match self { | ||
Self::Ecdsa(pub_key, _) => MultiSigner::Ecdsa(pub_key.clone()), |
Check failure
Code scanning / clippy
using clone on type Public which implements the Copy trait Error
|
||
pub fn public(&self) -> MultiSigner { | ||
match self { | ||
Self::Ecdsa(pub_key, _) => MultiSigner::Ecdsa(pub_key.clone()), |
Check failure
Code scanning / clippy
using clone on type Public which implements the Copy trait Error
pub fn public(&self) -> MultiSigner { | ||
match self { | ||
Self::Ecdsa(pub_key, _) => MultiSigner::Ecdsa(pub_key.clone()), | ||
Self::Ed25519(pub_key, _) => MultiSigner::Ed25519(pub_key.clone()), |
Check failure
Code scanning / clippy
using clone on type Public which implements the Copy trait Error
pub fn public(&self) -> MultiSigner { | ||
match self { | ||
Self::Ecdsa(pub_key, _) => MultiSigner::Ecdsa(pub_key.clone()), | ||
Self::Ed25519(pub_key, _) => MultiSigner::Ed25519(pub_key.clone()), |
Check failure
Code scanning / clippy
using clone on type Public which implements the Copy trait Error
match self { | ||
MultiSignatures::Ecdsa(sigs) => sigs | ||
.iter() | ||
.map(|(pk, sig)| MultiSignature::Ecdsa(pk.clone(), sig.clone())) |
Check failure
Code scanning / clippy
using clone on type Public which implements the Copy trait Error
pub fn add_peer(&mut self, pub_key: MultiSigner) -> bool { | ||
match (self, pub_key) { | ||
(Self::Ecdsa(pub_keys), MultiSigner::Ecdsa(pub_key)) => { | ||
return pub_keys.try_insert(pub_key).unwrap_or(false); |
Check failure
Code scanning / clippy
unneeded return statement Error
return pub_keys.try_insert(pub_key).unwrap_or(false); | ||
} | ||
(Self::Ed25519(pub_keys), MultiSigner::Ed25519(pub_key)) => { | ||
return pub_keys.try_insert(pub_key).unwrap_or(false); |
Check failure
Code scanning / clippy
unneeded return statement Error
return pub_keys.try_insert(pub_key).unwrap_or(false); | ||
} | ||
(Self::Ed25519(pub_keys), MultiSigner::Ed25519(pub_key)) => { | ||
return pub_keys.try_insert(pub_key).unwrap_or(false); |
Check failure
Code scanning / clippy
unneeded return statement Error
(Self::Ed25519(pub_keys), MultiSigner::Ed25519(pub_key)) => { | ||
return pub_keys.try_insert(pub_key).unwrap_or(false); | ||
} | ||
_ => return false, |
Check failure
Code scanning / clippy
unneeded return statement Error
(Self::Ed25519(pub_keys), MultiSigner::Ed25519(pub_key)) => { | ||
return pub_keys.try_insert(pub_key).unwrap_or(false); | ||
} | ||
_ => return false, |
Check failure
Code scanning / clippy
unneeded return statement Error
No description provided.