script: no need to use readUInt8

This commit is contained in:
Daniel Cousens 2015-08-25 18:08:32 +10:00
parent 4ec7c40a02
commit 48dc0a9054

View file

@ -84,7 +84,7 @@ function decompile (buffer) {
var i = 0 var i = 0
while (i < buffer.length) { while (i < buffer.length) {
var opcode = buffer.readUInt8(i) var opcode = buffer[i]
// data chunk // data chunk
if ((opcode > OPS.OP_0) && (opcode <= OPS.OP_PUSHDATA4)) { if ((opcode > OPS.OP_0) && (opcode <= OPS.OP_PUSHDATA4)) {