We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a500f commit ae75505Copy full SHA for ae75505
packages/std/src/testing/mock.rs
@@ -151,7 +151,7 @@ impl Api for MockApi {
151
Variant::Bech32,
152
)
153
.map(Addr::unchecked)
154
- .map_err(|_| StdError::generic_err("Invalid canonical address"))
+ .map_err(|_| StdError::generic_err("Invalid bech32 prefix"))
155
}
156
157
fn secp256k1_verify(
packages/vm/src/testing/mock.rs
@@ -165,7 +165,7 @@ impl BackendApi for MockApi {
165
try_br!((validate_length(canonical), gas_info));
166
167
let result = encode(bech32_prefix, canonical.to_base32(), Variant::Bech32)
168
- .map_err(|_| BackendError::user_err("Invalid canonical address"));
+ .map_err(|_| BackendError::user_err("Invalid bech32 prefix"));
169
170
(result, gas_info)
171
0 commit comments