mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Explicitly use "" for KEY within the tests
Causes the provided keystore to be used over our keystore.
This commit is contained in:
@@ -8,6 +8,9 @@ pub struct Keystore(sr25519::Pair);
|
||||
impl Keystore {
|
||||
pub fn from_env() -> Option<Self> {
|
||||
let mut key_hex = serai_env::var("KEY")?;
|
||||
if key_hex.is_empty() {
|
||||
None?;
|
||||
}
|
||||
let mut key = hex::decode(&key_hex).expect("KEY from environment wasn't hex");
|
||||
key_hex.zeroize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user