File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed
modules/sdk-coin-flrp/src/lib Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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-
6034export class Transaction extends BaseTransaction {
6135 protected _flareTransaction : pvmSerial . BaseTx | UnsignedTx ;
6236 public _type : TransactionType ;
You can’t perform that action at this time.
0 commit comments