File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
util/signing/interface/src/key Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,16 @@ pub enum Environment {
40
40
Prod ,
41
41
Dev ,
42
42
Staging ,
43
+ Test ,
43
44
}
44
45
45
46
impl ToCanonicalString for Environment {
46
47
fn to_canonical_string ( & self ) -> String {
47
48
match self {
48
49
Environment :: Prod => "prod" . to_string ( ) ,
49
- Environment :: Dev => "devNet " . to_string ( ) ,
50
+ Environment :: Dev => "devnet " . to_string ( ) ,
50
51
Environment :: Staging => "staging" . to_string ( ) ,
52
+ Environment :: Test => "testnet" . to_string ( ) ,
51
53
}
52
54
}
53
55
}
@@ -56,8 +58,9 @@ impl TryFromCanonicalString for Environment {
56
58
fn try_from_canonical_string ( s : & str ) -> Result < Self , String > {
57
59
match s {
58
60
"prod" => Ok ( Environment :: Prod ) ,
59
- "devNet " => Ok ( Environment :: Dev ) ,
61
+ "devnet " => Ok ( Environment :: Dev ) ,
60
62
"staging" => Ok ( Environment :: Staging ) ,
63
+ "testnet" => Ok ( Environment :: Test ) ,
61
64
_ => Err ( format ! ( "invalid environment: {}" , s) ) ,
62
65
}
63
66
}
You can’t perform that action at this time.
0 commit comments