Skip to content

Commit

Permalink
style: apply format
Browse files Browse the repository at this point in the history
  • Loading branch information
d-yokoi committed Mar 4, 2019
1 parent 8329e74 commit 070a782
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
32 changes: 16 additions & 16 deletions ts_src/payments/p2sh.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { Payment, PaymentOpts } from './index' // eslint-disable-line
import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
import * as bscript from '../script'
import * as bcrypto from '../crypto'
import * as lazy from './lazy'
const typef = require('typeforce')
const OPS = bscript.OPS

const bs58check = require('bs58check')

function stacksEqual (a: Array<Buffer>, b: Array<Buffer>): boolean {
if (a.length !== b.length) return false

return a.every(function (x, i) {
return x.equals(b[i])
})
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line
import * as bscript from '../script';
import * as bcrypto from '../crypto';
import * as lazy from './lazy';
const typef = require('typeforce');
const OPS = bscript.OPS;

const bs58check = require('bs58check');

function stacksEqual(a: Array<Buffer>, b: Array<Buffer>): boolean {
if (a.length !== b.length) return false;

return a.every(function(x, i) {
return x.equals(b[i]);
});
}

// input: [redeemScriptSig ...] {redeemScript}
Expand Down
14 changes: 7 additions & 7 deletions ts_src/payments/p2wsh.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Payment, PaymentOpts } from './index' // eslint-disable-line
import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
import * as bscript from '../script'
import * as bcrypto from '../crypto'
import * as lazy from './lazy'
const typef = require('typeforce')
const OPS = bscript.OPS
import { Payment, PaymentOpts } from './index'; // eslint-disable-line
import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line
import * as bscript from '../script';
import * as bcrypto from '../crypto';
import * as lazy from './lazy';
const typef = require('typeforce');
const OPS = bscript.OPS;

const bech32 = require('bech32');

Expand Down

1 comment on commit 070a782

@Neng908
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

079a782

Please sign in to comment.