Skip to content

Commit 9feaeed

Browse files
committed
fix build
1 parent e838713 commit 9feaeed

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

packages/thirdweb/src/adapters/ethers5.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import type { Abi } from "abitype";
22
import * as universalethers from "ethers";
33
import type * as ethers5 from "ethers5";
44
import type * as ethers6 from "ethers6";
5-
import type { AccessList, Hex, TransactionSerializable } from "viem";
5+
import type { AccessList, Hex } from "viem";
66
import type { Chain } from "../chains/types.js";
77
import { getRpcUrlForChain } from "../chains/utils.js";
88
import type { ThirdwebClient } from "../client/client.js";
99
import { type ThirdwebContract, getContract } from "../contract/contract.js";
1010
import { toSerializableTransaction } from "../transaction/actions/to-serializable-transaction.js";
1111
import { waitForReceipt } from "../transaction/actions/wait-for-tx-receipt.js";
1212
import type { PreparedTransaction } from "../transaction/prepare-transaction.js";
13+
import type { SerializableTransaction } from "../transaction/serialize-transaction.js";
1314
import { toHex } from "../utils/encoding/hex.js";
1415
import type { Account } from "../wallets/interfaces/wallet.js";
1516

@@ -588,7 +589,7 @@ export async function toEthersSigner(
588589
* @internal
589590
*/
590591
function alignTxToEthers(
591-
tx: TransactionSerializable,
592+
tx: SerializableTransaction,
592593
): ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest> {
593594
const { to: viemTo, type: viemType, gas, ...rest } = tx;
594595
// massage "to" to fit ethers

packages/thirdweb/src/adapters/ethers6.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ import type { Abi } from "abitype";
22
import * as universalethers from "ethers";
33
import type * as ethers5 from "ethers5";
44
import type * as ethers6 from "ethers6";
5-
import type { AccessList, Hex, TransactionSerializable } from "viem";
5+
import type { AccessList, Hex } from "viem";
66
import type { Chain } from "../chains/types.js";
77
import { getRpcUrlForChain } from "../chains/utils.js";
88
import type { ThirdwebClient } from "../client/client.js";
99
import { type ThirdwebContract, getContract } from "../contract/contract.js";
1010
import { toSerializableTransaction } from "../transaction/actions/to-serializable-transaction.js";
1111
import type { PreparedTransaction } from "../transaction/prepare-transaction.js";
12+
import type { SerializableTransaction } from "../transaction/serialize-transaction.js";
1213
import { toHex } from "../utils/encoding/hex.js";
1314
import { resolvePromisedValue } from "../utils/promise/resolve-promised-value.js";
1415
import type { Account } from "../wallets/interfaces/wallet.js";
@@ -493,7 +494,7 @@ export function toEthersSigner(
493494
* @returns The aligned transaction object.
494495
* @internal
495496
*/
496-
function alignTxToEthers(tx: TransactionSerializable) {
497+
function alignTxToEthers(tx: SerializableTransaction) {
497498
const { type: viemType, ...rest } = tx;
498499

499500
// massage "type" to fit ethers

packages/thirdweb/src/wallets/interfaces/wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Address } from "abitype";
22
import type * as ox__TypedData from "ox/TypedData";
3-
import type { Hex, SignableMessage, TransactionSerializable } from "viem";
3+
import type { Hex, SignableMessage } from "viem";
44
import type { Chain } from "../../chains/types.js";
55
import type {
66
EIP712TransactionOptions,
@@ -218,7 +218,7 @@ export type Account = {
218218
* }
219219
* ```
220220
*/
221-
signTransaction?: (tx: TransactionSerializable) => Promise<Hex>;
221+
signTransaction?: (tx: SerializableTransaction) => Promise<Hex>;
222222
/**
223223
* Send the given array of transactions to the blockchain in a single batch
224224
*

0 commit comments

Comments
 (0)