mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Fix account derivation in CLI (#952)
* Fix account derivation. * Fix tests.
This commit is contained in:
committed by
Bastian Köcher
parent
051030374a
commit
c8db52672f
@@ -53,7 +53,7 @@ macro_rules! select_full_bridge {
|
|||||||
|
|
||||||
// Derive-account
|
// Derive-account
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use bp_millau::derive_account_from_rialto_id as derive_account;
|
use bp_rialto::derive_account_from_millau_id as derive_account;
|
||||||
|
|
||||||
// Relay-messages
|
// Relay-messages
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
@@ -75,7 +75,7 @@ macro_rules! select_full_bridge {
|
|||||||
|
|
||||||
// Derive-account
|
// Derive-account
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use bp_rialto::derive_account_from_millau_id as derive_account;
|
use bp_millau::derive_account_from_rialto_id as derive_account;
|
||||||
|
|
||||||
// Relay-messages
|
// Relay-messages
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
|
|||||||
@@ -91,11 +91,11 @@ mod tests {
|
|||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
format!("{}", rialto_derived),
|
format!("{}", rialto_derived),
|
||||||
"73gLnUwrAdH4vMjbXCiNEpgyz1PLk9JxCaY4cKzvfSZT73KE"
|
"74GNQjmkcfstRftSQPJgMREchqHM56EvAUXRc266cZ1NYVW5"
|
||||||
);
|
);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
format!("{}", millau_derived),
|
format!("{}", millau_derived),
|
||||||
"5rpTJqGv1BPAYy2sXzkPpc3Wx1ZpQtgfuBsrDpNV4HsXAmbi"
|
"5rERgaT1Z8nM3et2epA5i1VtEBfp5wkhwHtVE8HK7BRbjAH2"
|
||||||
);
|
);
|
||||||
assert_eq!(millau_derived, millau2_derived);
|
assert_eq!(millau_derived, millau2_derived);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user