Skip to content

Commit ff88f97

Browse files
committed
Do not try printing a decoded muxed-account strkey
1 parent a98e089 commit ff88f97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crypto/SecretKey.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ StrKeyUtils::logKey(std::ostream& s, std::string const& key)
580580
s << " type: STRKEY_HASH_X" << std::endl;
581581
break;
582582
case strKey::STRKEY_MUXED_ACCOUNT_ED25519:
583-
s << " type: STRKEY_MUXED_ACCOUNT_ED25519" << std::endl;
583+
throw std::runtime_error(
584+
"unexpected StrKey type STRKEY_MUXED_ACCOUNT_ED25519");
584585
break;
585586
case strKey::STRKEY_CONTRACT:
586587
s << " type: STRKEY_CONTRACT" << std::endl;

0 commit comments

Comments
 (0)