style: apply format
This commit is contained in:
parent
8329e74566
commit
070a782149
2 changed files with 20 additions and 20 deletions
|
@ -1,19 +1,19 @@
|
||||||
import { Payment, PaymentOpts } from './index' // eslint-disable-line
|
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||||
import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
|
import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line
|
||||||
import * as bscript from '../script'
|
import * as bscript from '../script';
|
||||||
import * as bcrypto from '../crypto'
|
import * as bcrypto from '../crypto';
|
||||||
import * as lazy from './lazy'
|
import * as lazy from './lazy';
|
||||||
const typef = require('typeforce')
|
const typef = require('typeforce');
|
||||||
const OPS = bscript.OPS
|
const OPS = bscript.OPS;
|
||||||
|
|
||||||
const bs58check = require('bs58check')
|
const bs58check = require('bs58check');
|
||||||
|
|
||||||
function stacksEqual(a: Array<Buffer>, b: Array<Buffer>): boolean {
|
function stacksEqual(a: Array<Buffer>, b: Array<Buffer>): boolean {
|
||||||
if (a.length !== b.length) return false
|
if (a.length !== b.length) return false;
|
||||||
|
|
||||||
return a.every(function(x, i) {
|
return a.every(function(x, i) {
|
||||||
return x.equals(b[i])
|
return x.equals(b[i]);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// input: [redeemScriptSig ...] {redeemScript}
|
// input: [redeemScriptSig ...] {redeemScript}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { Payment, PaymentOpts } from './index' // eslint-disable-line
|
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
|
||||||
import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
|
import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line
|
||||||
import * as bscript from '../script'
|
import * as bscript from '../script';
|
||||||
import * as bcrypto from '../crypto'
|
import * as bcrypto from '../crypto';
|
||||||
import * as lazy from './lazy'
|
import * as lazy from './lazy';
|
||||||
const typef = require('typeforce')
|
const typef = require('typeforce');
|
||||||
const OPS = bscript.OPS
|
const OPS = bscript.OPS;
|
||||||
|
|
||||||
const bech32 = require('bech32');
|
const bech32 = require('bech32');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue