Skip to content

Commit 55bb597

Browse files
committed
fix
1 parent 7c088dd commit 55bb597

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

packages/thirdweb/src/transaction/actions/send-transaction.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ describe("sendTransaction", () => {
3939
it.only("should send an eip7702 transaction", async () => {
4040
const account = TEST_ACCOUNT_A;
4141
const delegate = privateKeyToAccount({
42-
privateKey: "",
42+
privateKey:
43+
"0xa363398fd9d91df900843fbdb2dea349ce393b1ab1184255bc8372da317708c2",
4344
client: TEST_CLIENT,
4445
});
4546

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)