Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions networks/cosmos/src/workflows/plugins/signer-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ export class SignerInfoPlugin extends BaseWorkflowBuilderPlugin<
// Get public key bytes - handle both AccountData (with pubkey property) and IAccount (with getPublicKey method)
let pubkeyBytes: Uint8Array;
if ('pubkey' in account && account.pubkey) {
// AccountData from OfflineSigner - has direct pubkey property
pubkeyBytes = account.pubkey;
if (account.pubkey instanceof Uint8Array) {
pubkeyBytes = account.pubkey;
} else {
// Convert object with numeric keys to Uint8Array
const values = Object.values(account.pubkey) as number[];
pubkeyBytes = new Uint8Array(values);
}
} else if ('getPublicKey' in account && typeof account.getPublicKey === 'function') {
// IAccount from IWallet - use getPublicKey method
try {
Expand Down
Loading