Skip to content

Commit 425c70d

Browse files
committed
fix recursion
1 parent 9abe28d commit 425c70d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Thirdweb/Thirdweb.Utils/Utils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ public static string NumberToHex(this BigInteger number)
167167
/// </summary>
168168
public static string NumberToHex(this int number)
169169
{
170-
return NumberToHex(number);
170+
return NumberToHex(new BigInteger(number));
171171
}
172172

173173
/// <summary>
174174
/// Converts the given long to a hex string.
175175
/// </summary>
176176
public static string NumberToHex(this long number)
177177
{
178-
return NumberToHex(number);
178+
return NumberToHex(new BigInteger(number));
179179
}
180180

181181
/// <summary>

0 commit comments

Comments
 (0)