File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ interface RecoveryOptions {
55
55
interface AdaTx {
56
56
serializedTx : string ;
57
57
scanIndex : number ;
58
+ coin ?: string ;
58
59
}
59
60
60
61
export type AdaTransactionExplanation = TransactionExplanation ;
@@ -381,6 +382,8 @@ export class Ada extends BaseCoin {
381
382
txBuilder . addSignature ( { pub : adaKeyPair . getKeys ( ) . pub } , signatureHex ) ;
382
383
const signedTransaction = await txBuilder . build ( ) ;
383
384
serializedTx = signedTransaction . toBroadcastFormat ( ) ;
385
+ } else {
386
+ return { serializedTx : serializedTx , scanIndex : i , coin : this . getChain ( ) } ;
384
387
}
385
388
return { serializedTx : serializedTx , scanIndex : i } ;
386
389
}
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ interface RecoveryOptions {
62
62
interface DotTx {
63
63
serializedTx : string ;
64
64
scanIndex : number ;
65
+ coin ?: string ;
65
66
}
66
67
67
68
const dotUtils = Utils . default ;
@@ -441,6 +442,8 @@ export class Dot extends BaseCoin {
441
442
txnBuilder . addSignature ( { pub : dotKeyPair . getKeys ( ) . pub } , signatureHex ) ;
442
443
const signedTransaction = await txnBuilder . build ( ) ;
443
444
serializedTx = signedTransaction . toBroadcastFormat ( ) ;
445
+ } else {
446
+ return { serializedTx : serializedTx , scanIndex : i , coin : this . getChain ( ) } ;
444
447
}
445
448
return { serializedTx : serializedTx , scanIndex : i } ;
446
449
}
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ export interface SolParseTransactionOptions extends BaseParseTransactionOptions
104
104
interface SolTx {
105
105
serializedTx : string ;
106
106
scanIndex : number ;
107
+ coin ?: string ;
107
108
}
108
109
109
110
interface SolDurableNonceFromNode {
@@ -709,6 +710,13 @@ export class Sol extends BaseCoin {
709
710
710
711
const completedTransaction = await txBuilder . build ( ) ;
711
712
const serializedTx = completedTransaction . toBroadcastFormat ( ) ;
713
+ if ( isUnsignedSweep ) {
714
+ return {
715
+ serializedTx : serializedTx ,
716
+ scanIndex : scanIndex ,
717
+ coin : this . getChain ( ) ,
718
+ } ;
719
+ }
712
720
return {
713
721
serializedTx : serializedTx ,
714
722
scanIndex : scanIndex ,
You can’t perform that action at this time.
0 commit comments