File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
modules/abstract-cosmos/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ export class CosmosCoin<CustomMessage = never> extends BaseCoin {
169169 messages,
170170 chainId,
171171 accountDetails,
172- publicKey : publicKey || params . bitgoKey || '' ,
172+ publicKey : publicKey || '' ,
173173 isUnsignedSweep,
174174 keyShares,
175175 } ) ;
@@ -208,11 +208,15 @@ export class CosmosCoin<CustomMessage = never> extends BaseCoin {
208208 publicKey ?: string ;
209209 keyShares ?: KeyShares ;
210210 } > {
211+ const MPC = new Ecdsa ( ) ;
212+
211213 if ( isUnsignedSweep ) {
212- return { senderAddress : params . rootAddress as string } ;
214+ return {
215+ senderAddress : params . rootAddress as string ,
216+ publicKey : MPC . deriveUnhardened ( params . bitgoKey || '' , ROOT_PATH ) . slice ( 0 , 66 ) ,
217+ } ;
213218 }
214219
215- const MPC = new Ecdsa ( ) ;
216220 const keyShares = await this . getKeyShares ( params ) ;
217221 const publicKey = MPC . deriveUnhardened ( keyShares . commonKeyChain , ROOT_PATH ) . slice ( 0 , 66 ) ;
218222
You can’t perform that action at this time.
0 commit comments