Skip to content

Commit

Permalink
minor script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andkom committed Dec 15, 2018
1 parent 963546f commit b50bb75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Script/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function __toString()
}

/**
* @return array
* @throws \Exception
* @return Operation[]
* @throws ScriptException
*/
public function parse(): array
{
Expand All @@ -103,7 +103,7 @@ public function parse(): array

if ($code == Opcodes::OP_0) {
$data = '';
} elseif ($code >= 0x01 && $code <= 0x4b) {
} elseif ($code > Opcodes::OP_0 && $code < Opcodes::OP_PUSHDATA1) {
$data = $stream->read($code);
$size = $code;
} elseif ($code >= Opcodes::OP_PUSHDATA1 && $code <= Opcodes::OP_PUSHDATA4) {
Expand Down

0 comments on commit b50bb75

Please sign in to comment.