Update AccountId to use sr25519 in node-template (#2119)

This commit is contained in:
Shawn Tabrizi
2019-03-27 10:50:14 +01:00
committed by Bastian Köcher
parent 2ca08a95ba
commit b32653d0a8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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()
}