style: apply format

This commit is contained in:
d-yokoi 2019-03-04 22:17:29 +09:00
parent 8329e74566
commit 070a782149
No known key found for this signature in database
GPG key ID: 49EAF81BC6A0D19A
2 changed files with 20 additions and 20 deletions

View file

@ -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}

View file

@ -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');