Skip to content

Commit

Permalink
fixedbug
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhitong committed May 14, 2024
1 parent 250c8ea commit 6fdab35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Neo.CLI/CLI/MainService.Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,9 @@ private string ScriptsToOpCode(Script script)
var ip = 0;
Instruction instruction;
var result = new List<string>();
while ((instruction = script.GetInstruction(ip)) != null)
while (ip < script.Length && (instruction = script.GetInstruction(ip)) != null)
{
ip += instruction.Size;
if (ip >= script.Length) break;

var op = instruction.OpCode;

Expand Down

0 comments on commit 6fdab35

Please sign in to comment.