We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963546f commit b50bb75Copy full SHA for b50bb75
src/Script/Script.php
@@ -79,8 +79,8 @@ public function __toString()
79
}
80
81
/**
82
- * @return array
83
- * @throws \Exception
+ * @return Operation[]
+ * @throws ScriptException
84
*/
85
public function parse(): array
86
{
@@ -103,7 +103,7 @@ public function parse(): array
103
104
if ($code == Opcodes::OP_0) {
105
$data = '';
106
- } elseif ($code >= 0x01 && $code <= 0x4b) {
+ } elseif ($code > Opcodes::OP_0 && $code < Opcodes::OP_PUSHDATA1) {
107
$data = $stream->read($code);
108
$size = $code;
109
} elseif ($code >= Opcodes::OP_PUSHDATA1 && $code <= Opcodes::OP_PUSHDATA4) {
0 commit comments