diff --git a/lib/bcoin/script.js b/lib/bcoin/script.js index e40c3d0b..ff0d6775 100644 --- a/lib/bcoin/script.js +++ b/lib/bcoin/script.js @@ -37,9 +37,6 @@ script.decode = function decode(s) { var opcode = constants.opcodesByVal[b]; if (opcode === 'pushdata1') { - // NOTE: pushdata1 could be substituted with 0x01-0x4b - // later if less than or equal to 0x4b. - // bad when passed back into encode(). var len = s[i]; i += 1; opcodes.push(s.slice(i, i + len)); @@ -49,8 +46,6 @@ script.decode = function decode(s) { len: len }); } else if (opcode === 'pushdata2') { - // NOTE: len could theoretically be less than 0xffff - // here. bad when passed back into encode(). var len = utils.readU16(s, i); i += 2; opcodes.push(s.slice(i, i + len)); @@ -60,8 +55,6 @@ script.decode = function decode(s) { len: len }); } else if (opcode === 'pushdata4') { - // NOTE: len could theoretically be less than 0xffffffff - // here. bad when passed back into encode(). var len = utils.readU32(s, i); i += 4; opcodes.push(s.slice(i, i + len));