negative indexes don't work in javascript
This commit is contained in:
parent
2314a9dd29
commit
f62875efad
|
@ -118,8 +118,8 @@ function spec(b) {
|
|||
{
|
||||
return (this.chunks.length > 3 &&
|
||||
isSmallIntOp(this.chunks[0]) &&
|
||||
isSmallIntOp(this.chunks[-2]) &&
|
||||
this.chunks[-1] == OP_CHECKMULTISIG);
|
||||
isSmallIntOp(this.chunks[this.chunks.length-2]) &&
|
||||
this.chunks[this.chunks.length-1] == OP_CHECKMULTISIG);
|
||||
};
|
||||
|
||||
// is this a script form we know?
|
||||
|
|
Loading…
Reference in New Issue