File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ enum KeyEncoding {
1212
1313fn 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 ) ) ;
You can’t perform that action at this time.
0 commit comments