Skip to content

Commit 30a1f4b

Browse files
committed
use checksumAddress
1 parent eff5097 commit 30a1f4b

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"superjson": "^2.2.1",
7171
"thirdweb": "^5.45.1",
7272
"uuid": "^9.0.1",
73-
"viem": "^1.14.0",
7473
"winston": "^3.14.1",
7574
"zod": "^3.23.8"
7675
},

src/utils/primitiveTypes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Address, getAddress } from "thirdweb";
1+
import { Address } from "thirdweb";
2+
import { checksumAddress } from "thirdweb/utils";
23

34
export const maybeBigInt = (val?: string) => (val ? BigInt(val) : undefined);
45

@@ -22,7 +23,7 @@ export function getChecksumAddress(val: string | null): Address | undefined;
2223
export function getChecksumAddress(
2324
val?: string | Address | null,
2425
): Address | undefined {
25-
return val ? getAddress(val) : undefined;
26+
return val ? checksumAddress(val) : undefined;
2627
}
2728

2829
export function maybeDate(val: number): Date;

yarn.lock

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4860,11 +4860,6 @@
48604860
"@walletconnect/window-getters" "^1.0.1"
48614861
tslib "1.14.1"
48624862

4863-
abitype@0.9.8:
4864-
version "0.9.8"
4865-
resolved "https://registry.yarnpkg.com/abitype/-/abitype-0.9.8.tgz#1f120b6b717459deafd213dfbf3a3dd1bf10ae8c"
4866-
integrity sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==
4867-
48684863
abitype@1.0.0:
48694864
version "1.0.0"
48704865
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.0.tgz#237176dace81d90d018bebf3a45cb42f2a2d9e97"
@@ -7954,11 +7949,6 @@ isomorphic-unfetch@3.1.0, isomorphic-unfetch@^3.1.0:
79547949
node-fetch "^2.6.1"
79557950
unfetch "^4.2.0"
79567951

7957-
isows@1.0.3:
7958-
version "1.0.3"
7959-
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.3.tgz#93c1cf0575daf56e7120bab5c8c448b0809d0d74"
7960-
integrity sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==
7961-
79627952
isows@1.0.4:
79637953
version "1.0.4"
79647954
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.4.tgz#810cd0d90cc4995c26395d2aa4cfa4037ebdf061"
@@ -11097,20 +11087,6 @@ viem@2.19.3:
1109711087
webauthn-p256 "0.0.5"
1109811088
ws "8.17.1"
1109911089

11100-
viem@^1.14.0:
11101-
version "1.21.4"
11102-
resolved "https://registry.yarnpkg.com/viem/-/viem-1.21.4.tgz#883760e9222540a5a7e0339809202b45fe6a842d"
11103-
integrity sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==
11104-
dependencies:
11105-
"@adraffy/ens-normalize" "1.10.0"
11106-
"@noble/curves" "1.2.0"
11107-
"@noble/hashes" "1.3.2"
11108-
"@scure/bip32" "1.3.2"
11109-
"@scure/bip39" "1.2.1"
11110-
abitype "0.9.8"
11111-
isows "1.0.3"
11112-
ws "8.13.0"
11113-
1111411090
vite-node@2.0.3:
1111511091
version "2.0.3"
1111611092
resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-2.0.3.tgz#449b1524178304ba764bd33062bd31a09c5e673f"

0 commit comments

Comments
 (0)