mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Update AccountId to use sr25519 in node-template (#2119)
This commit is contained in:
committed by
Bastian Köcher
parent
2ca08a95ba
commit
b32653d0a8
@@ -1,4 +1,4 @@
|
||||
use primitives::{ed25519, Pair};
|
||||
use primitives::{ed25519, sr25519, Pair};
|
||||
use node_template_runtime::{
|
||||
AccountId, GenesisConfig, ConsensusConfig, TimestampConfig, BalancesConfig,
|
||||
SudoConfig, IndicesConfig,
|
||||
@@ -31,7 +31,7 @@ fn authority_key(s: &str) -> AuthorityId {
|
||||
}
|
||||
|
||||
fn account_key(s: &str) -> AccountId {
|
||||
ed25519::Pair::from_string(&format!("//{}", s), None)
|
||||
sr25519::Pair::from_string(&format!("//{}", s), None)
|
||||
.expect("static values are valid; qed")
|
||||
.public()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user