Skip to content

Commit

Permalink
Added null check
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuchardt88 committed Dec 7, 2024
1 parent 2d767e5 commit db60e2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Neo/Extensions/SmartContract/NeoTokenExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public static class NeoTokenExtensions
{
public static IEnumerable<(UInt160 Address, BigInteger Balance)> GetAccounts(this NeoToken neoToken, DataCache snapshot)
{
if (neoToken is null)
throw new ArgumentNullException(nameof(neoToken));

if (snapshot is null)
throw new ArgumentNullException(nameof(snapshot));

Expand Down

0 comments on commit db60e2f

Please sign in to comment.