Skip to content

Commit d59413e

Browse files
committed
fix
fix
1 parent 7c088dd commit d59413e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/thirdweb/src/transaction/actions/to-serializable-transaction.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ export async function toSerializableTransaction(
143143
export async function resolveAndSignAuthorizations(
144144
options: ToSerializableTransactionOptions,
145145
): Promise<SignedAuthorization[] | undefined> {
146+
if (typeof options.transaction.authorizationList !== "undefined") {
147+
return await resolvePromisedValue(options.transaction.authorizationList);
148+
}
149+
146150
if (typeof options.transaction.authorizations === "undefined") {
147151
return undefined;
148152
}

packages/thirdweb/src/transaction/prepare-transaction.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import type { ThirdwebClient } from "../client/client.js";
55
import type { ThirdwebContract } from "../contract/contract.js";
66
import type { PreparedMethod } from "../utils/abi/prepare-method.js";
77
import type { PromisedObject } from "../utils/promise/resolve-promised-value.js";
8-
import type { Authorization } from "./actions/eip7702/authorization.js";
8+
import type {
9+
Authorization,
10+
SignedAuthorization,
11+
} from "./actions/eip7702/authorization.js";
912

1013
export type StaticPrepareTransactionOptions = {
1114
accessList?: AccessList | undefined;
@@ -21,6 +24,7 @@ export type StaticPrepareTransactionOptions = {
2124
extraGas?: bigint | undefined;
2225
// eip7702
2326
authorizations?: Authorization[] | undefined;
27+
authorizationList?: SignedAuthorization[] | undefined;
2428
// zksync specific
2529
eip712?: EIP712TransactionOptions | undefined;
2630
// tw specific

0 commit comments

Comments
 (0)