You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Never echo the raw input: it may be a secret key or seed phrase
20
+
// pasted where an alias was expected.
21
+
UnresolvedScAddress::Alias(_) => {
22
+
f.debug_tuple("Alias").field(&"<alias or secret>").finish()
23
+
}
24
+
}
25
+
}
26
+
}
27
+
15
28
implDefaultforUnresolvedScAddress{
16
29
fndefault() -> Self{
17
30
UnresolvedScAddress::Alias(String::default())
@@ -24,8 +37,10 @@ pub enum Error {
24
37
Locator(#[from] locator::Error),
25
38
#[error(transparent)]
26
39
Key(#[from] key::Error),
27
-
#[error("Account alias \"{0}\" not Found")]
28
-
AccountAliasNotFound(String),
40
+
// The input is never echoed: a secret key or seed phrase mistyped where an
41
+
// address was expected must not reach the terminal, logs, or JSON output.
42
+
#[error("invalid address or alias")]
43
+
AccountAliasNotFound,
29
44
#[error("alias '{0}' is reserved for the native asset contract but also matches a stored key; pass an explicit contract (C...) or account (G...) address instead")]
0 commit comments