Skip to content

Commit f6ee362

Browse files
committed
refactor: remove commented-out code and unused function for clarity in transaction handling
TICKET: WIN-7770
1 parent 3a05bc6 commit f6ee362

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

modules/sdk-coin-flrp/src/lib/ImportInPTxBuilder.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ export class ImportInPTxBuilder extends AtomicTransactionBuilder {
6565
// Recover UTXOs from imported inputs
6666
this.transaction._utxos = this.recoverUtxos(baseTx.importedInputs);
6767

68-
// const secpOut = output.getOutput();
69-
// this.transaction._locktime = secpOut.getLocktime().value();
70-
// this.transaction._threshold = secpOut.getThreshold().value();
71-
// // output addresses are the sender addresses
72-
// this.transaction._fromAddresses = secpOut.getAddresses().map(addr => addr.toBytes());
73-
// this._externalChainId = baseTx.sourceChain.toBytes();
74-
// this.transaction._utxos = this.recoverUtxos(baseTx.importedInputs);
7568
return this;
7669
}
7770

modules/sdk-coin-flrp/src/lib/transaction.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,6 @@ function isEmptySignature(signature: string): boolean {
3131
return !!signature && utils.removeHexPrefix(signature).startsWith(''.padStart(90, '0'));
3232
}
3333

34-
// interface CheckSignature {
35-
// (signature: string, addressHex: string): boolean;
36-
// }
37-
38-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
39-
// function generateSelectorSignature(signatures: string[]): CheckSignature {
40-
// if (signatures.length > 1 && signatures.every((sig) => isEmptySignature(sig))) {
41-
// return function (sig, address): boolean {
42-
// try {
43-
// if (!isEmptySignature(sig)) {
44-
// return false;
45-
// }
46-
// if (sig.startsWith('0x')) sig = sig.substring(2);
47-
// const pub = sig.substring(90);
48-
// return pub === address;
49-
// } catch (e) {
50-
// return false;
51-
// }
52-
// };
53-
// } else {
54-
// return function (sig, address): boolean {
55-
// return isEmptySignature(sig);
56-
// };
57-
// }
58-
// }
59-
6034
export class Transaction extends BaseTransaction {
6135
protected _flareTransaction: pvmSerial.BaseTx | UnsignedTx;
6236
public _type: TransactionType;

0 commit comments

Comments
 (0)