Skip to content

Commit

Permalink
Fix type in error message: encodeUint -> encodeInt
Browse files Browse the repository at this point in the history
  • Loading branch information
chudilka1 committed Dec 18, 2023
1 parent f0192ee commit 76661b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulateScript/deno-sandbox/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ const Functions = {
}
if (typeof num === 'number') {
if (!Number.isInteger(num)) {
throw new Error('input into Functions.encodeUint256 is not an integer')
throw new Error('input into Functions.encodeInt256 is not an integer')
}
}
num = BigInt(num)
Expand Down

0 comments on commit 76661b6

Please sign in to comment.