Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zktony committed Apr 25, 2023
1 parent 68a2116 commit c4a98b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion primitives/thea/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![cfg_attr(not(feature = "std"), no_std)]
pub mod parachain;
pub mod types;
#[cfg(test)]
mod test;
pub mod types;

use parity_scale_codec::{Decode, Encode};
use scale_info::TypeInfo;
Expand Down
19 changes: 9 additions & 10 deletions primitives/thea/src/test.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
use sp_core::Pair;
use sp_runtime::traits::IdentifyAccount;


#[test]
fn get_thea_public_key() {
let seed = "owner word vocal dose decline sunset battle example forget excite gentle waste//";
let idx = 3;
let thea = crate::crypto::Pair::from_string(
&(seed.to_owned() + idx.to_string().as_str() + "//thea"),
None,
)
.unwrap();
println!("public_key : {:?}", hex::encode(thea.public().into_account()));
}
let seed = "owner word vocal dose decline sunset battle example forget excite gentle waste//";
let idx = 3;
let thea = crate::crypto::Pair::from_string(
&(seed.to_owned() + idx.to_string().as_str() + "//thea"),
None,
)
.unwrap();
println!("public_key : {:?}", hex::encode(thea.public().into_account()));
}

0 comments on commit c4a98b8

Please sign in to comment.