Remove eslint comments.
This commit is contained in:
parent
763cb8b923
commit
0729fde36f
12 changed files with 20 additions and 30 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||
import { Payment, PaymentOpts } from './index';
|
||||
import * as bscript from '../script';
|
||||
import * as lazy from './lazy';
|
||||
import { bitcoin as BITCOIN_NETWORK } from '../networks';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Network } from '../networks'; // eslint-disable-line
|
||||
import { Network } from '../networks';
|
||||
import { p2data as embed } from './embed';
|
||||
import { p2ms } from './p2ms';
|
||||
import { p2pk } from './p2pk';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||
import { Payment, PaymentOpts } from './index';
|
||||
import * as bscript from '../script';
|
||||
import * as lazy from './lazy';
|
||||
import { bitcoin as BITCOIN_NETWORK } from '../networks';
|
||||
|
@ -32,7 +32,7 @@ export function p2ms(a: Payment, opts?: PaymentOpts): Payment {
|
|||
return (
|
||||
bscript.isCanonicalScriptSignature(<Buffer>x) ||
|
||||
(opts!.allowIncomplete && <number>x === OPS.OP_0) !== undefined
|
||||
); // eslint-disable-line
|
||||
);
|
||||
}
|
||||
|
||||
typef(
|
||||
|
@ -58,8 +58,8 @@ export function p2ms(a: Payment, opts?: PaymentOpts): Payment {
|
|||
if (decoded) return;
|
||||
decoded = true;
|
||||
chunks = <Array<Buffer | number>>bscript.decompile(output);
|
||||
o.m = <number>chunks[0] - OP_INT_BASE; // eslint-disable-line
|
||||
o.n = <number>chunks[chunks.length - 2] - OP_INT_BASE; // eslint-disable-line
|
||||
o.m = <number>chunks[0] - OP_INT_BASE;
|
||||
o.n = <number>chunks[chunks.length - 2] - OP_INT_BASE;
|
||||
o.pubkeys = <Array<Buffer>>chunks.slice(1, -2);
|
||||
}
|
||||
|
||||
|
@ -115,12 +115,7 @@ export function p2ms(a: Payment, opts?: PaymentOpts): Payment {
|
|||
if (chunks[chunks.length - 1] !== OPS.OP_CHECKMULTISIG)
|
||||
throw new TypeError('Output is invalid');
|
||||
|
||||
if (
|
||||
o.m! <= 0 || // eslint-disable-line
|
||||
o.n! > 16 || // eslint-disable-line
|
||||
o.m! > o.n! || // eslint-disable-line
|
||||
o.n !== chunks.length - 3
|
||||
)
|
||||
if (o.m! <= 0 || o.n! > 16 || o.m! > o.n! || o.n !== chunks.length - 3)
|
||||
throw new TypeError('Output is invalid');
|
||||
if (!o.pubkeys!.every(x => ecc.isPoint(x)))
|
||||
throw new TypeError('Output is invalid');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||
import { Payment, PaymentOpts } from './index';
|
||||
import * as bscript from '../script';
|
||||
import * as lazy from './lazy';
|
||||
import { bitcoin as BITCOIN_NETWORK } from '../networks';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||
import { Payment, PaymentOpts } from './index';
|
||||
import * as bscript from '../script';
|
||||
import * as bcrypto from '../crypto';
|
||||
import * as lazy from './lazy';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||
import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line
|
||||
import { Payment, PaymentOpts } from './index';
|
||||
import { bitcoin as BITCOIN_NETWORK } from '../networks';
|
||||
import * as bscript from '../script';
|
||||
import * as bcrypto from '../crypto';
|
||||
import * as lazy from './lazy';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||
import { Payment, PaymentOpts } from './index';
|
||||
import * as bscript from '../script';
|
||||
import * as bcrypto from '../crypto';
|
||||
import * as lazy from './lazy';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||
import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line
|
||||
import { Payment, PaymentOpts } from './index';
|
||||
import { bitcoin as BITCOIN_NETWORK } from '../networks';
|
||||
import * as bscript from '../script';
|
||||
import * as bcrypto from '../crypto';
|
||||
import * as lazy from './lazy';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue