Skip to content

Commit

Permalink
fix: switch to strict comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev committed Dec 13, 2024
1 parent c02bd66 commit 94ebe8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account-kit/smart-contracts/src/ma-v2/account/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function createSMAV2Account(

if (nonceKey) {
// comparing the end 40 bytes to suffix
if (nonceKey % 2n ** 40n != nonceKeySuffix) {
if (nonceKey % 2n ** 40n !== nonceKeySuffix) {
throw new Error("Invalid nonceKey");
}
} else {
Expand Down

0 comments on commit 94ebe8d

Please sign in to comment.