lib/stellar/util/strkey.rb in stellar-base-0.23.0.pre1 vs lib/stellar/util/strkey.rb in stellar-base-0.23.0.rc1
- old
+ new
@@ -24,10 +24,10 @@
# Converts an Stellar::MuxedAccount to its string representation, forcing the ed25519 representation.
# @param [Stellar::MuxedAccount] muxed account
# @return [String] "G.."-like address
def self.encode_muxed_account(muxed_account)
ed25519 = if muxed_account.switch == Stellar::CryptoKeyType.key_type_ed25519
- muxed_account.ed25519
+ muxed_account.ed25519!
else
muxed_account.med25519!.ed25519
end
check_encode(:account_id, ed25519)