From 9d217b42808dc3fb2498938178e01643a52177a5 Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Tue, 4 Jun 2024 12:37:58 -0400 Subject: [PATCH] refactor(internal): remove explicit never from unions --- src/accounts/types.ts | 8 +++--- src/actions/public/call.ts | 4 +-- .../public/createContractEventFilter.ts | 4 +-- src/actions/public/createEventFilter.ts | 26 +++++++++---------- src/actions/public/estimateGas.ts | 4 +-- src/actions/public/getBalance.ts | 4 +-- src/actions/public/getBlock.ts | 12 ++++----- .../public/getBlockTransactionCount.ts | 12 ++++----- src/actions/public/getBytecode.ts | 4 +-- src/actions/public/getFeeHistory.ts | 4 +-- src/actions/public/getLogs.ts | 20 +++++++------- src/actions/public/getProof.ts | 4 +-- src/actions/public/getStorageAt.ts | 4 +-- src/actions/public/getTransaction.ts | 24 ++++++++--------- .../public/getTransactionConfirmations.ts | 4 +-- src/actions/public/getTransactionCount.ts | 4 +-- src/actions/public/watchEvent.ts | 14 +++++----- src/clients/transports/fallback.ts | 4 +-- src/errors/base.ts | 4 +-- .../actions/buildDepositTransaction.ts | 2 +- src/op-stack/types/deposit.ts | 2 +- src/types/eip1193.ts | 8 +++--- src/types/fee.ts | 10 +++---- src/types/filter.ts | 14 +++++----- src/types/rpc.ts | 16 ++++++------ src/types/transaction.ts | 12 ++++----- src/types/typedData.ts | 2 +- src/utils/encoding/toHex.ts | 2 +- src/zksync/actions/getL1Balance.ts | 4 +-- src/zksync/actions/getL1TokenBalance.ts | 4 +-- src/zksync/types/transaction.ts | 2 +- 31 files changed, 121 insertions(+), 121 deletions(-) diff --git a/src/accounts/types.ts b/src/accounts/types.ts index aa049c3ad7..dd57144d98 100644 --- a/src/accounts/types.ts +++ b/src/accounts/types.ts @@ -73,12 +73,12 @@ export type HDOptions = addressIndex?: number | undefined /** The change index to use in the path (`"m/44'/60'/0'/${changeIndex}/0"`). */ changeIndex?: number | undefined - path?: never | undefined + path?: undefined } | { - accountIndex?: never | undefined - addressIndex?: never | undefined - changeIndex?: never | undefined + accountIndex?: undefined + addressIndex?: undefined + changeIndex?: undefined /** The HD path. */ path: `m/44'/60'/${string}` } diff --git a/src/actions/public/call.ts b/src/actions/public/call.ts index 050d3e448c..be84773d13 100644 --- a/src/actions/public/call.ts +++ b/src/actions/public/call.ts @@ -81,10 +81,10 @@ export type CallParameters< | { /** The balance of the account at a block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockNumber?: never | undefined + blockNumber?: undefined /** * The balance of the account at a block tag. * @default 'latest' diff --git a/src/actions/public/createContractEventFilter.ts b/src/actions/public/createContractEventFilter.ts index db456f4e27..df767bb603 100644 --- a/src/actions/public/createContractEventFilter.ts +++ b/src/actions/public/createContractEventFilter.ts @@ -45,7 +45,7 @@ export type CreateContractEventFilterParameters< toBlock?: toBlock | BlockNumber | BlockTag | undefined } & (undefined extends eventName ? { - args?: never | undefined + args?: undefined } : MaybeExtractEventArgsFromAbi extends infer TEventFilterArgs ? { @@ -55,7 +55,7 @@ export type CreateContractEventFilterParameters< | undefined } : { - args?: never | undefined + args?: undefined }) export type CreateContractEventFilterReturnType< diff --git a/src/actions/public/createEventFilter.ts b/src/actions/public/createEventFilter.ts index be53cf0421..d3fb89629b 100644 --- a/src/actions/public/createEventFilter.ts +++ b/src/actions/public/createEventFilter.ts @@ -51,7 +51,7 @@ export type CreateEventFilterParameters< | TEventFilterArgs | (_Args extends TEventFilterArgs ? _Args : never) event: TAbiEvent - events?: never | undefined + events?: undefined /** * Whether or not the logs must match the indexed/non-indexed arguments on `event`. * @default false @@ -59,9 +59,9 @@ export type CreateEventFilterParameters< strict?: TStrict | undefined } | { - args?: never | undefined + args?: undefined event?: TAbiEvent | undefined - events?: never | undefined + events?: undefined /** * Whether or not the logs must match the indexed/non-indexed arguments on `event`. * @default false @@ -69,8 +69,8 @@ export type CreateEventFilterParameters< strict?: TStrict | undefined } | { - args?: never | undefined - event?: never | undefined + args?: undefined + event?: undefined events: TAbiEvents | undefined /** * Whether or not the logs must match the indexed/non-indexed arguments on `event`. @@ -79,16 +79,16 @@ export type CreateEventFilterParameters< strict?: TStrict | undefined } | { - args?: never | undefined - event?: never | undefined - events?: never | undefined - strict?: never | undefined + args?: undefined + event?: undefined + events?: undefined + strict?: undefined } : { - args?: never | undefined - event?: never | undefined - events?: never | undefined - strict?: never | undefined + args?: undefined + event?: undefined + events?: undefined + strict?: undefined }) export type CreateEventFilterReturnType< diff --git a/src/actions/public/estimateGas.ts b/src/actions/public/estimateGas.ts index 5bf9faafe4..65ac81bfb6 100644 --- a/src/actions/public/estimateGas.ts +++ b/src/actions/public/estimateGas.ts @@ -50,10 +50,10 @@ export type EstimateGasParameters< | { /** The balance of the account at a block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockNumber?: never | undefined + blockNumber?: undefined /** * The balance of the account at a block tag. * @default 'latest' diff --git a/src/actions/public/getBalance.ts b/src/actions/public/getBalance.ts index 42cefddff1..ea78e7002d 100644 --- a/src/actions/public/getBalance.ts +++ b/src/actions/public/getBalance.ts @@ -18,10 +18,10 @@ export type GetBalanceParameters = { | { /** The balance of the account at a block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockNumber?: never | undefined + blockNumber?: undefined /** The balance of the account at a block tag. */ blockTag?: BlockTag | undefined } diff --git a/src/actions/public/getBlock.ts b/src/actions/public/getBlock.ts index 081adcdd05..152f204233 100644 --- a/src/actions/public/getBlock.ts +++ b/src/actions/public/getBlock.ts @@ -31,18 +31,18 @@ export type GetBlockParameters< | { /** Hash of the block. */ blockHash?: Hash | undefined - blockNumber?: never | undefined - blockTag?: never | undefined + blockNumber?: undefined + blockTag?: undefined } | { - blockHash?: never | undefined + blockHash?: undefined /** The block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockHash?: never | undefined - blockNumber?: never | undefined + blockHash?: undefined + blockNumber?: undefined /** * The block tag. * @default 'latest' diff --git a/src/actions/public/getBlockTransactionCount.ts b/src/actions/public/getBlockTransactionCount.ts index 819518816f..3fcfcb981c 100644 --- a/src/actions/public/getBlockTransactionCount.ts +++ b/src/actions/public/getBlockTransactionCount.ts @@ -19,18 +19,18 @@ export type GetBlockTransactionCountParameters = | { /** Hash of the block. */ blockHash?: Hash | undefined - blockNumber?: never | undefined - blockTag?: never | undefined + blockNumber?: undefined + blockTag?: undefined } | { - blockHash?: never | undefined + blockHash?: undefined /** The block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockHash?: never | undefined - blockNumber?: never | undefined + blockHash?: undefined + blockNumber?: undefined /** The block tag. Defaults to 'latest'. */ blockTag?: BlockTag | undefined } diff --git a/src/actions/public/getBytecode.ts b/src/actions/public/getBytecode.ts index 510125ff42..e38a244a9b 100644 --- a/src/actions/public/getBytecode.ts +++ b/src/actions/public/getBytecode.ts @@ -16,12 +16,12 @@ export type GetBytecodeParameters = { address: Address } & ( | { - blockNumber?: never | undefined + blockNumber?: undefined blockTag?: BlockTag | undefined } | { blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } ) diff --git a/src/actions/public/getFeeHistory.ts b/src/actions/public/getFeeHistory.ts index 4cc94b069c..54e748e41c 100644 --- a/src/actions/public/getFeeHistory.ts +++ b/src/actions/public/getFeeHistory.ts @@ -24,7 +24,7 @@ export type GetFeeHistoryParameters = { rewardPercentiles: number[] } & ( | { - blockNumber?: never | undefined + blockNumber?: undefined /** * Highest number block of the requested range. * @default 'latest' @@ -34,7 +34,7 @@ export type GetFeeHistoryParameters = { | { /** Highest number block of the requested range. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } ) export type GetFeeHistoryReturnType = FeeHistory diff --git a/src/actions/public/getLogs.ts b/src/actions/public/getLogs.ts index 9f664774e5..b3caf5bca4 100644 --- a/src/actions/public/getLogs.ts +++ b/src/actions/public/getLogs.ts @@ -45,7 +45,7 @@ export type GetLogsParameters< } & ( | { event: TAbiEvent - events?: never | undefined + events?: undefined args?: MaybeExtractEventArgsFromAbi | undefined /** * Whether or not the logs must match the indexed/non-indexed arguments on `event`. @@ -54,9 +54,9 @@ export type GetLogsParameters< strict?: TStrict | undefined } | { - event?: never | undefined + event?: undefined events: TAbiEvents - args?: never | undefined + args?: undefined /** * Whether or not the logs must match the indexed/non-indexed arguments on `event`. * @default false @@ -64,10 +64,10 @@ export type GetLogsParameters< strict?: TStrict | undefined } | { - event?: never | undefined - events?: never | undefined - args?: never | undefined - strict?: never | undefined + event?: undefined + events?: undefined + args?: undefined + strict?: undefined } ) & ( @@ -76,11 +76,11 @@ export type GetLogsParameters< fromBlock?: TFromBlock | BlockNumber | BlockTag | undefined /** Block number or tag before which to include logs */ toBlock?: TToBlock | BlockNumber | BlockTag | undefined - blockHash?: never | undefined + blockHash?: undefined } | { - fromBlock?: never | undefined - toBlock?: never | undefined + fromBlock?: undefined + toBlock?: undefined /** Hash of block to include logs from */ blockHash?: Hash | undefined } diff --git a/src/actions/public/getProof.ts b/src/actions/public/getProof.ts index e5dd1c8893..96a5646868 100644 --- a/src/actions/public/getProof.ts +++ b/src/actions/public/getProof.ts @@ -25,10 +25,10 @@ export type GetProofParameters = { | { /** The block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockNumber?: never | undefined + blockNumber?: undefined /** * The block tag. * @default 'latest' diff --git a/src/actions/public/getStorageAt.ts b/src/actions/public/getStorageAt.ts index 5c6227ccd6..d23a5b020f 100644 --- a/src/actions/public/getStorageAt.ts +++ b/src/actions/public/getStorageAt.ts @@ -17,12 +17,12 @@ export type GetStorageAtParameters = { slot: Hex } & ( | { - blockNumber?: never | undefined + blockNumber?: undefined blockTag?: BlockTag | undefined } | { blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } ) diff --git a/src/actions/public/getTransaction.ts b/src/actions/public/getTransaction.ts index 66a1fe8682..de4e266d95 100644 --- a/src/actions/public/getTransaction.ts +++ b/src/actions/public/getTransaction.ts @@ -21,34 +21,34 @@ export type GetTransactionParameters = | { /** The block hash */ blockHash: Hash - blockNumber?: never | undefined - blockTag?: never | undefined - hash?: never | undefined + blockNumber?: undefined + blockTag?: undefined + hash?: undefined /** The index of the transaction on the block. */ index: number } | { - blockHash?: never | undefined + blockHash?: undefined /** The block number */ blockNumber: bigint - blockTag?: never | undefined - hash?: never | undefined + blockTag?: undefined + hash?: undefined /** The index of the transaction on the block. */ index: number } | { - blockHash?: never | undefined - blockNumber?: never | undefined + blockHash?: undefined + blockNumber?: undefined /** The block tag. */ blockTag: TBlockTag | BlockTag - hash?: never | undefined + hash?: undefined /** The index of the transaction on the block. */ index: number } | { - blockHash?: never | undefined - blockNumber?: never | undefined - blockTag?: never | undefined + blockHash?: undefined + blockNumber?: undefined + blockTag?: undefined /** The hash of the transaction. */ hash: Hash index?: number | undefined diff --git a/src/actions/public/getTransactionConfirmations.ts b/src/actions/public/getTransactionConfirmations.ts index d1aed774ff..ed876f42f7 100644 --- a/src/actions/public/getTransactionConfirmations.ts +++ b/src/actions/public/getTransactionConfirmations.ts @@ -21,10 +21,10 @@ export type GetTransactionConfirmationsParameters< | { /** The transaction hash. */ hash: Hash - transactionReceipt?: never | undefined + transactionReceipt?: undefined } | { - hash?: never | undefined + hash?: undefined /** The transaction receipt. */ transactionReceipt: FormattedTransactionReceipt } diff --git a/src/actions/public/getTransactionCount.ts b/src/actions/public/getTransactionCount.ts index e0c3a5dbff..ed0a5b0ddf 100644 --- a/src/actions/public/getTransactionCount.ts +++ b/src/actions/public/getTransactionCount.ts @@ -23,10 +23,10 @@ export type GetTransactionCountParameters = { | { /** The block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockNumber?: never | undefined + blockNumber?: undefined /** The block tag. Defaults to 'latest'. */ blockTag?: BlockTag | undefined } diff --git a/src/actions/public/watchEvent.ts b/src/actions/public/watchEvent.ts index 5009982886..a061ffe292 100644 --- a/src/actions/public/watchEvent.ts +++ b/src/actions/public/watchEvent.ts @@ -81,7 +81,7 @@ export type WatchEventParameters< ( | { event: TAbiEvent - events?: never | undefined + events?: undefined args?: MaybeExtractEventArgsFromAbi | undefined /** * Whether or not the logs must match the indexed/non-indexed arguments on `event`. @@ -90,9 +90,9 @@ export type WatchEventParameters< strict?: TStrict | undefined } | { - event?: never | undefined + event?: undefined events?: TAbiEvents | undefined - args?: never | undefined + args?: undefined /** * Whether or not the logs must match the indexed/non-indexed arguments on `event`. * @default false @@ -100,10 +100,10 @@ export type WatchEventParameters< strict?: TStrict | undefined } | { - event?: never | undefined - events?: never | undefined - args?: never | undefined - strict?: never | undefined + event?: undefined + events?: undefined + args?: undefined + strict?: undefined } ) diff --git a/src/clients/transports/fallback.ts b/src/clients/transports/fallback.ts index d6c3744815..f084fce526 100644 --- a/src/clients/transports/fallback.ts +++ b/src/clients/transports/fallback.ts @@ -20,13 +20,13 @@ export type OnResponseFn = ( transport: ReturnType } & ( | { - error?: never | undefined + error?: undefined response: unknown status: 'success' } | { error: Error - response?: never | undefined + response?: undefined status: 'error' } ), diff --git a/src/errors/base.ts b/src/errors/base.ts index 60e1ece294..9d44ba05c3 100644 --- a/src/errors/base.ts +++ b/src/errors/base.ts @@ -6,12 +6,12 @@ type BaseErrorParameters = { metaMessages?: string[] | undefined } & ( | { - cause?: never | undefined + cause?: undefined details?: string | undefined } | { cause: BaseError | Error | undefined - details?: never | undefined + details?: undefined } ) diff --git a/src/op-stack/actions/buildDepositTransaction.ts b/src/op-stack/actions/buildDepositTransaction.ts index cbd9084a00..f890b73bc7 100644 --- a/src/op-stack/actions/buildDepositTransaction.ts +++ b/src/op-stack/actions/buildDepositTransaction.ts @@ -57,7 +57,7 @@ export type BuildDepositTransactionParameters< /** Whether or not this is a contract deployment transaction. */ isCreation: true /** L2 Transaction recipient. Cannot exist for contract deployment transactions. */ - to?: never | undefined + to?: undefined } ) diff --git a/src/op-stack/types/deposit.ts b/src/op-stack/types/deposit.ts index db2d4238f0..80864fcd3a 100644 --- a/src/op-stack/types/deposit.ts +++ b/src/op-stack/types/deposit.ts @@ -23,6 +23,6 @@ export type DepositRequest = { /** Whether or not this is a contract deployment transaction. */ isCreation: true /** L2 Transaction recipient. Cannot exist for contract deployment transactions. */ - to?: never | undefined + to?: undefined } ) diff --git a/src/types/eip1193.ts b/src/types/eip1193.ts index e1d8896319..ee81f77325 100644 --- a/src/types/eip1193.ts +++ b/src/types/eip1193.ts @@ -548,11 +548,11 @@ export type PublicRpcSchema = [ | { fromBlock?: BlockNumber | BlockTag | undefined toBlock?: BlockNumber | BlockTag | undefined - blockHash?: never | undefined + blockHash?: undefined } | { - fromBlock?: never | undefined - toBlock?: never | undefined + fromBlock?: undefined + toBlock?: undefined blockHash?: Hash | undefined } ), @@ -1508,7 +1508,7 @@ export type EIP1193Parameters< : never } & (TRpcSchema[K] extends TRpcSchema[number] ? TRpcSchema[K]['Parameters'] extends undefined - ? { params?: never | undefined } + ? { params?: undefined } : { params: TRpcSchema[K]['Parameters'] } : never) > diff --git a/src/types/fee.ts b/src/types/fee.ts index 223edc9e71..69a1badadf 100644 --- a/src/types/fee.ts +++ b/src/types/fee.ts @@ -17,14 +17,14 @@ export type FeeHistory = { export type FeeValuesLegacy = { /** Base fee per gas. */ gasPrice: TQuantity - maxFeePerBlobGas?: never | undefined - maxFeePerGas?: never | undefined - maxPriorityFeePerGas?: never | undefined + maxFeePerBlobGas?: undefined + maxFeePerGas?: undefined + maxPriorityFeePerGas?: undefined } export type FeeValuesEIP1559 = { - gasPrice?: never | undefined - maxFeePerBlobGas?: never | undefined + gasPrice?: undefined + maxFeePerBlobGas?: undefined /** Total fee per gas in wei (gasPrice/baseFeePerGas + maxPriorityFeePerGas). */ maxFeePerGas: TQuantity /** Max priority fee per gas (in wei). */ diff --git a/src/types/filter.ts b/src/types/filter.ts index 2ca0ca732c..7bd5a7ad01 100644 --- a/src/types/filter.ts +++ b/src/types/filter.ts @@ -37,8 +37,8 @@ export type Filter< ? undefined extends TEventName ? { abi: TAbi - args?: never | undefined - eventName?: never | undefined + args?: undefined + eventName?: undefined strict: TStrict } : TArgs extends MaybeExtractEventArgsFromAbi @@ -50,14 +50,14 @@ export type Filter< } : { abi: TAbi - args?: never | undefined + args?: undefined eventName: TEventName strict: TStrict } : { - abi?: never | undefined - args?: never | undefined - eventName?: never | undefined - strict?: never | undefined + abi?: undefined + args?: undefined + eventName?: undefined + strict?: undefined }) : {}) diff --git a/src/types/rpc.ts b/src/types/rpc.ts index 8b727fee7a..e7afc51671 100644 --- a/src/types/rpc.ts +++ b/src/types/rpc.ts @@ -68,28 +68,28 @@ export type RpcTransaction = UnionOmit< > type SuccessResult = { - method?: never | undefined + method?: undefined result: T - error?: never | undefined + error?: undefined } type ErrorResult = { - method?: never | undefined - result?: never | undefined + method?: undefined + result?: undefined error: T } type Subscription = { method: 'eth_subscription' - error?: never | undefined - result?: never | undefined + error?: undefined + result?: undefined params: { subscription: string } & ( | { result: TResult - error?: never | undefined + error?: undefined } | { - result?: never | undefined + result?: undefined error: TError } ) diff --git a/src/types/transaction.ts b/src/types/transaction.ts index ff6f07ca3b..5323927a6e 100644 --- a/src/types/transaction.ts +++ b/src/types/transaction.ts @@ -112,11 +112,11 @@ export type TransactionLegacy< > = Omit, 'yParity'> & FeeValuesLegacy & { /** EIP-2930 Access List. */ - accessList?: never | undefined - blobVersionedHashes?: never | undefined + accessList?: undefined + blobVersionedHashes?: undefined /** Chain ID that this transaction is valid on. */ chainId?: TIndex | undefined - yParity?: never | undefined + yParity?: undefined type: TType } export type TransactionEIP2930< @@ -128,7 +128,7 @@ export type TransactionEIP2930< FeeValuesLegacy & { /** EIP-2930 Access List. */ accessList: AccessList - blobVersionedHashes?: never | undefined + blobVersionedHashes?: undefined /** Chain ID that this transaction is valid on. */ chainId: TIndex type: TType @@ -142,7 +142,7 @@ export type TransactionEIP1559< FeeValuesEIP1559 & { /** EIP-2930 Access List. */ accessList: AccessList - blobVersionedHashes?: never | undefined + blobVersionedHashes?: undefined /** Chain ID that this transaction is valid on. */ chainId: TIndex type: TType @@ -193,7 +193,7 @@ export type TransactionRequestLegacy< TTransactionType = 'legacy', > = TransactionRequestBase & ExactPartial> & { - accessList?: never | undefined + accessList?: undefined blobs?: undefined type?: TTransactionType | undefined } diff --git a/src/types/typedData.ts b/src/types/typedData.ts index ad9b158ca1..4d1d47c680 100644 --- a/src/types/typedData.ts +++ b/src/types/typedData.ts @@ -56,5 +56,5 @@ type EIP712DomainDefinition< domain: schema extends { EIP712Domain: infer domain } ? domain : Prettify - message?: never | undefined + message?: undefined } diff --git a/src/utils/encoding/toHex.ts b/src/utils/encoding/toHex.ts index 68d6e79603..ddb85adcfe 100644 --- a/src/utils/encoding/toHex.ts +++ b/src/utils/encoding/toHex.ts @@ -150,7 +150,7 @@ export type NumberToHexOpts = size: number } | { - signed?: never | undefined + signed?: undefined /** The size (in bytes) of the output hex value. */ size?: number | undefined } diff --git a/src/zksync/actions/getL1Balance.ts b/src/zksync/actions/getL1Balance.ts index 097354db2f..ba588c3bf0 100644 --- a/src/zksync/actions/getL1Balance.ts +++ b/src/zksync/actions/getL1Balance.ts @@ -24,10 +24,10 @@ export type GetL1BalanceParameters< | { /** The balance of the account at a block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockNumber?: never | undefined + blockNumber?: undefined /** The balance of the account at a block tag. */ blockTag?: BlockTag | undefined } diff --git a/src/zksync/actions/getL1TokenBalance.ts b/src/zksync/actions/getL1TokenBalance.ts index ec534f0bc9..bbf20e1a41 100644 --- a/src/zksync/actions/getL1TokenBalance.ts +++ b/src/zksync/actions/getL1TokenBalance.ts @@ -18,10 +18,10 @@ export type GetL1TokenBalanceParameters< | { /** The balance of the account at a block number. */ blockNumber?: bigint | undefined - blockTag?: never | undefined + blockTag?: undefined } | { - blockNumber?: never | undefined + blockNumber?: undefined /** The balance of the account at a block tag. */ blockTag?: BlockTag | undefined } diff --git a/src/zksync/types/transaction.ts b/src/zksync/types/transaction.ts index f8bb446e2a..93e293062b 100644 --- a/src/zksync/types/transaction.ts +++ b/src/zksync/types/transaction.ts @@ -238,7 +238,7 @@ export type TransactionRequestEIP712< TTransactionType = 'eip712', > = TransactionRequestBase & ExactPartial> & { - accessList?: never | undefined + accessList?: undefined gasPerPubdata?: bigint | undefined factoryDeps?: Hex[] | undefined paymaster?: Address | undefined