File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/thirdweb/src/transaction Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,10 @@ export async function toSerializableTransaction(
143143export 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 }
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import type { ThirdwebClient } from "../client/client.js";
55import type { ThirdwebContract } from "../contract/contract.js" ;
66import type { PreparedMethod } from "../utils/abi/prepare-method.js" ;
77import 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
1013export 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
You can’t perform that action at this time.
0 commit comments