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 87dfd93 commit 4cb90ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Neo/Extensions/SmartContract/GasTokenExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public static class GasTokenExtensions
{
public static IEnumerable<(UInt160 Address, BigInteger Balance)> GetAccounts(this GasToken gasToken, DataCache snapshot)
{
if (gasToken is null)
throw new ArgumentNullException(nameof(gasToken));

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

Expand Down

0 comments on commit 4cb90ff

Please sign in to comment.