From f465b8ec247832d9c0b56ec288684d313304be17 Mon Sep 17 00:00:00 2001 From: Yoon-Suji Date: Fri, 19 May 2023 01:42:01 +0200 Subject: [PATCH] fix: signTransaction return value in WELLDONE Wallet --- .../src/utils/wallets/welldone/WelldoneWallet.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/wallet-ts/src/utils/wallets/welldone/WelldoneWallet.ts b/packages/wallet-ts/src/utils/wallets/welldone/WelldoneWallet.ts index 945632d15..009d3d5d8 100644 --- a/packages/wallet-ts/src/utils/wallets/welldone/WelldoneWallet.ts +++ b/packages/wallet-ts/src/utils/wallets/welldone/WelldoneWallet.ts @@ -6,7 +6,6 @@ import { } from '@injectivelabs/ts-types' import { TxResponse, TxRestApi, CosmosTxV1Beta1Tx } from '@injectivelabs/sdk-ts' import { DirectSignResponse, makeSignBytes } from '@cosmjs/proto-signing' -import { encodeSecp256k1Pubkey } from '@cosmjs/amino' import { ErrorType, UnspecifiedErrorCode, @@ -112,9 +111,13 @@ export class WelldoneWallet { return { signed: signDoc, signature: { - pub_key: encodeSecp256k1Pubkey( - Buffer.from(response[0].publicKey.replace('0x', ''), 'hex'), - ), + pub_key: { + type: '/cosmos.crypto.secp256k1.PubKey', + value: Buffer.from( + response[0].publicKey.replace('0x', ''), + 'hex', + ).toString('base64'), + }, signature: Buffer.from( response[0].signature.replace('0x', ''), 'hex',