Skip to content

Commit

Permalink
Update src/Neo.VM/ReferenceCounter/ReferenceCounterV2.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Hecate2 <[email protected]>
  • Loading branch information
shargon and Hecate2 authored Jan 7, 2025
1 parent 552991f commit 95f6535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Neo.VM/ReferenceCounter/ReferenceCounterV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void AddStackReference(StackItem item, int count = 1)
_referencesCount += count;

if (_referencesCount > _limits.MaxStackSize)
throw new IndexOutOfRangeException("Circular reference detected, execution stopped.");
throw new IndexOutOfRangeException("Circular reference or too many VM StackItems.");
if (item is CompoundType compoundType)
{
// Increment the item's stack references by the specified count.
Expand Down

0 comments on commit 95f6535

Please sign in to comment.