Skip to content

Commit 681fd33

Browse files
committed
equality check
1 parent 234bd40 commit 681fd33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/thirdweb/src/constants/addresses.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { getAddress } from "src/utils/address.js";
2+
13
/**
24
* The address of the native token.
35
*/
@@ -8,7 +10,7 @@ export const NATIVE_TOKEN_ADDRESS =
810
* @internal
911
*/
1012
export function isNativeTokenAddress(address: string) {
11-
return address.toLowerCase() === NATIVE_TOKEN_ADDRESS;
13+
return getAddress(address) === getAddress(NATIVE_TOKEN_ADDRESS);
1214
}
1315

1416
/**

0 commit comments

Comments
 (0)