Skip to content

Commit 701aa4d

Browse files
authored
disable private key import for cadarno (#440)
1 parent 947dfd0 commit 701aa4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/crates/signer/src/decode.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enum KeyEncoding {
1212

1313
fn import_encodings_for_chain(chain: &Chain) -> &'static [KeyEncoding] {
1414
match chain.chain_type() {
15-
ChainType::Bitcoin => &[],
15+
ChainType::Bitcoin | ChainType::Cardano => &[],
1616
ChainType::Solana => &[KeyEncoding::Base58, KeyEncoding::Hex],
1717
ChainType::Stellar => &[KeyEncoding::Base32, KeyEncoding::Hex],
1818
_ => &[KeyEncoding::Hex],
@@ -226,6 +226,7 @@ mod tests {
226226
assert!(supports_private_key_import(&Chain::Ethereum));
227227
assert!(supports_private_key_import(&Chain::Solana));
228228
assert!(supports_private_key_import(&Chain::Stellar));
229+
assert!(!supports_private_key_import(&Chain::Cardano));
229230
assert!(!supports_private_key_import(&Chain::Bitcoin));
230231
assert!(!supports_private_key_import(&Chain::Litecoin));
231232
assert!(!supports_private_key_import(&Chain::Doge));

0 commit comments

Comments
 (0)