@@ -2,14 +2,15 @@ import type { Abi } from "abitype";
22import * as universalethers from "ethers" ;
33import type * as ethers5 from "ethers5" ;
44import type * as ethers6 from "ethers6" ;
5- import type { AccessList , Hex , TransactionSerializable } from "viem" ;
5+ import type { AccessList , Hex } from "viem" ;
66import type { Chain } from "../chains/types.js" ;
77import { getRpcUrlForChain } from "../chains/utils.js" ;
88import type { ThirdwebClient } from "../client/client.js" ;
99import { type ThirdwebContract , getContract } from "../contract/contract.js" ;
1010import { toSerializableTransaction } from "../transaction/actions/to-serializable-transaction.js" ;
1111import { waitForReceipt } from "../transaction/actions/wait-for-tx-receipt.js" ;
1212import type { PreparedTransaction } from "../transaction/prepare-transaction.js" ;
13+ import type { SerializableTransaction } from "../transaction/serialize-transaction.js" ;
1314import { toHex } from "../utils/encoding/hex.js" ;
1415import type { Account } from "../wallets/interfaces/wallet.js" ;
1516
@@ -588,7 +589,7 @@ export async function toEthersSigner(
588589 * @internal
589590 */
590591function 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
0 commit comments