Skip to content

Commit 4aaf295

Browse files
committed
fix standard 11 issues
1 parent b2d34c5 commit 4aaf295

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function isCanonicalPubKey (buffer) {
187187
function isDefinedHashType (hashType) {
188188
var hashTypeMod = hashType & ~0x80
189189

190-
// return hashTypeMod > SIGHASH_ALL && hashTypeMod < SIGHASH_SINGLE
190+
// return hashTypeMod > SIGHASH_ALL && hashTypeMod < SIGHASH_SINGLE
191191
return hashTypeMod > 0x00 && hashTypeMod < 0x04
192192
}
193193

src/script_number.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ function decode (buffer, maxLength, minimal) {
3535

3636
function scriptNumSize (i) {
3737
return i > 0x7fffffff ? 5
38-
: i > 0x7fffff ? 4
39-
: i > 0x7fff ? 3
40-
: i > 0x7f ? 2
41-
: i > 0x00 ? 1
42-
: 0
38+
: i > 0x7fffff ? 4
39+
: i > 0x7fff ? 3
40+
: i > 0x7f ? 2
41+
: i > 0x00 ? 1
42+
: 0
4343
}
4444

4545
function encode (number) {

test/ecpair.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('ECPair', function () {
255255
it('wraps ecdsa.verify', hoodwink(function () {
256256
this.mock(ecdsa, 'verify', function (h, s, q) {
257257
assert.strictEqual(h, hash)
258-
// assert.strictEqual(s, signature)
258+
// assert.strictEqual(s, signature)
259259
assert.deepEqual(s, {
260260
r: BigInteger.fromBuffer(signature.slice(0, 32)),
261261
s: BigInteger.fromBuffer(signature.slice(32, 64))

test/integration/bip32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('bitcoinjs-lib (BIP32)', function () {
8888
})
8989

9090
it('can use BIP39 to generate BIP32 addresses', function () {
91-
// var mnemonic = bip39.generateMnemonic()
91+
// var mnemonic = bip39.generateMnemonic()
9292
var mnemonic = 'praise you muffin lion enable neck grocery crumble super myself license ghost'
9393
assert(bip39.validateMnemonic(mnemonic))
9494

test/integration/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('bitcoinjs-lib (blocks)', function () {
1212

1313
assert.strictEqual(tx.ins.length, 1)
1414
let script = tx.ins[0].script
15-
// bitcoin.script.decompile(script) // returns [] :(
15+
// bitcoin.script.decompile(script) // returns [] :(
1616

1717
assert.strictEqual(script[0], 0x03)
1818
let heightBuffer = script.slice(1, 4)

0 commit comments

Comments
 (0)