Skip to content

Commit

Permalink
fix: signTransaction return value in WELLDONE Wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoon-Suji committed May 18, 2023
1 parent e6585e3 commit f465b8e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/wallet-ts/src/utils/wallets/welldone/WelldoneWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit f465b8e

Please sign in to comment.