We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 234bd40 commit 681fd33Copy full SHA for 681fd33
packages/thirdweb/src/constants/addresses.ts
@@ -1,3 +1,5 @@
1
+import { getAddress } from "src/utils/address.js";
2
+
3
/**
4
* The address of the native token.
5
*/
@@ -8,7 +10,7 @@ export const NATIVE_TOKEN_ADDRESS =
8
10
* @internal
9
11
12
export function isNativeTokenAddress(address: string) {
- return address.toLowerCase() === NATIVE_TOKEN_ADDRESS;
13
+ return getAddress(address) === getAddress(NATIVE_TOKEN_ADDRESS);
14
}
15
16
0 commit comments