File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
networks/cosmos/src/workflows/plugins Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,13 @@ export class SignerInfoPlugin extends BaseWorkflowBuilderPlugin<
6060 // Get public key bytes - handle both AccountData (with pubkey property) and IAccount (with getPublicKey method)
6161 let pubkeyBytes : Uint8Array ;
6262 if ( 'pubkey' in account && account . pubkey ) {
63- // AccountData from OfflineSigner - has direct pubkey property
64- pubkeyBytes = account . pubkey ;
63+ if ( account . pubkey instanceof Uint8Array ) {
64+ pubkeyBytes = account . pubkey ;
65+ } else {
66+ // Convert object with numeric keys to Uint8Array
67+ const values = Object . values ( account . pubkey ) as number [ ] ;
68+ pubkeyBytes = new Uint8Array ( values ) ;
69+ }
6570 } else if ( 'getPublicKey' in account && typeof account . getPublicKey === 'function' ) {
6671 // IAccount from IWallet - use getPublicKey method
6772 try {
You can’t perform that action at this time.
0 commit comments