Skip to content

Commit eff5097

Browse files
committed
fix build
1 parent 3994613 commit eff5097

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

src/utils/primitiveTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function normalizeAddress(val: Address): Address;
77
export function normalizeAddress(val?: Address): Address | undefined;
88
export function normalizeAddress(val: string): Address;
99
export function normalizeAddress(val?: string): Address | undefined;
10-
export function normalizeAddress(val: string | null): undefined;
10+
export function normalizeAddress(val: string | null): Address | undefined;
1111
export function normalizeAddress(
1212
val?: string | Address | null,
1313
): Address | undefined {
@@ -18,7 +18,7 @@ export function getChecksumAddress(val: Address): Address;
1818
export function getChecksumAddress(val?: Address): Address | undefined;
1919
export function getChecksumAddress(val: string): Address;
2020
export function getChecksumAddress(val?: string): Address | undefined;
21-
export function getChecksumAddress(val: string | null): undefined;
21+
export function getChecksumAddress(val: string | null): Address | undefined;
2222
export function getChecksumAddress(
2323
val?: string | Address | null,
2424
): Address | undefined {

src/worker/tasks/sendTransactionWorker.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import superjson from "superjson";
44
import { Hex, toSerializableTransaction } from "thirdweb";
55
import { stringify } from "thirdweb/utils";
66
import { bundleUserOp } from "thirdweb/wallets/smart";
7-
import type { TransactionSerializable } from "viem";
87
import { getContractAddress } from "viem";
98
import { TransactionDB } from "../../db/transactions/db";
109
import {
@@ -136,7 +135,9 @@ const _sendTransaction = async (
136135
// Populate the transaction to resolve gas values.
137136
// This call throws if the execution would be reverted.
138137
// The nonce is _not_ set yet.
139-
let populatedTransaction: TransactionSerializable;
138+
let populatedTransaction: Awaited<
139+
ReturnType<typeof toSerializableTransaction>
140+
>;
140141
try {
141142
populatedTransaction = await toSerializableTransaction({
142143
from: getChecksumAddress(from),

yarn.lock

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4860,6 +4860,11 @@
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+
48634868
abitype@1.0.0:
48644869
version "1.0.0"
48654870
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.0.tgz#237176dace81d90d018bebf3a45cb42f2a2d9e97"
@@ -7949,6 +7954,11 @@ isomorphic-unfetch@3.1.0, isomorphic-unfetch@^3.1.0:
79497954
node-fetch "^2.6.1"
79507955
unfetch "^4.2.0"
79517956

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+
79527962
isows@1.0.4:
79537963
version "1.0.4"
79547964
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.4.tgz#810cd0d90cc4995c26395d2aa4cfa4037ebdf061"
@@ -11087,6 +11097,20 @@ viem@2.19.3:
1108711097
webauthn-p256 "0.0.5"
1108811098
ws "8.17.1"
1108911099

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+
1109011114
vite-node@2.0.3:
1109111115
version "2.0.3"
1109211116
resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-2.0.3.tgz#449b1524178304ba764bd33062bd31a09c5e673f"

0 commit comments

Comments
 (0)