From affd867818af20c992c5953d86f1eb27f89ba815 Mon Sep 17 00:00:00 2001 From: Sergey Balashov Date: Mon, 26 Jun 2023 15:14:12 +0300 Subject: [PATCH] Revert "IOS-3384 Fixed incorrect public key for some Cosmos networks" --- src/Cosmos/Signer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cosmos/Signer.cpp b/src/Cosmos/Signer.cpp index 6b095d6686f..529ae62a776 100644 --- a/src/Cosmos/Signer.cpp +++ b/src/Cosmos/Signer.cpp @@ -16,7 +16,7 @@ namespace TW::Cosmos { Proto::SigningOutput Signer::sign(const Proto::SigningInput& input, TWCoinType coin) noexcept { const auto& privateKey = PrivateKey(input.private_key()); - const auto& publicKey = privateKey.getPublicKey(TWPublicKeyTypeSECP256k1); + const auto& publicKey = privateKey.getPublicKey(TWCoinTypePublicKeyType(coin)); return sign(input, coin, publicKey.bytes, nullptr); }