mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
Fix MultiSigner, simplify tests (#2033)
* Fix MultiSigner, use `into_signed_tx` * Rebuild.
This commit is contained in:
committed by
Gavin Wood
parent
b483c5608f
commit
08fda211d8
@@ -6,6 +6,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
substrate-primitives = { path = "../primitives" }
|
||||
sr-primitives = { path = "../sr-primitives" }
|
||||
hex-literal = { version = "0.1.0" }
|
||||
lazy_static = { version = "1.0" }
|
||||
strum = "0.14.0"
|
||||
|
||||
@@ -100,6 +100,12 @@ impl From<Keyring> for &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Keyring> for sr_primitives::MultiSigner {
|
||||
fn from(x: Keyring) -> Self {
|
||||
sr_primitives::MultiSigner::Ed25519(x.into())
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref PRIVATE_KEYS: HashMap<Keyring, Pair> = {
|
||||
Keyring::iter().map(|i| (i, i.pair())).collect()
|
||||
|
||||
@@ -96,6 +96,12 @@ impl From<Keyring> for &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Keyring> for sr_primitives::MultiSigner {
|
||||
fn from(x: Keyring) -> Self {
|
||||
sr_primitives::MultiSigner::Sr25519(x.into())
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref PRIVATE_KEYS: HashMap<Keyring, Pair> = {
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user