diff --git a/src/base58.js b/src/base58.js index b028623..c64683d 100644 --- a/src/base58.js +++ b/src/base58.js @@ -29,8 +29,7 @@ } else break; } - s = chars.join(''); - return s; + return chars.join(''); }, /** @@ -42,7 +41,7 @@ * Ported to JavaScript by Stefan Thomas. */ decode: function (input) { - bi = BigInteger.valueOf(0); + var bi = BigInteger.valueOf(0); var leadingZerosNum = 0; for (var i = input.length - 1; i >= 0; i--) { var alphaIndex = B58.alphabet.indexOf(input[i]); diff --git a/src/opcode.js b/src/opcode.js index 4850d17..b21da46 100644 --- a/src/opcode.js +++ b/src/opcode.js @@ -143,7 +143,7 @@ // template matching params OP_PUBKEYHASH : 253, OP_PUBKEY : 254, - OP_INVALIDOPCODE : 255, + OP_INVALIDOPCODE : 255 }; Opcode.reverseMap = [];