diff --git a/src/actions/index.ts b/src/actions/index.ts index adde41d..658c804 100644 --- a/src/actions/index.ts +++ b/src/actions/index.ts @@ -3,7 +3,7 @@ export { type AccountProof, getProof, type GetProofParameters, type StorageProof // Public L1 actions export { getL2HashesForDepositTx, - type GetL2HashesForDepositTxParamters, + type GetL2HashesForDepositTxParameters, type GetL2HashesForDepositTxReturnType, } from './public/L1/getL2HashesForDepositTx.js' export { diff --git a/src/actions/public/L1/getL2HashesForDepositTx.ts b/src/actions/public/L1/getL2HashesForDepositTx.ts index 6495eb8..afa66cb 100644 --- a/src/actions/public/L1/getL2HashesForDepositTx.ts +++ b/src/actions/public/L1/getL2HashesForDepositTx.ts @@ -3,7 +3,7 @@ import { getTransactionReceipt } from 'viem/actions' import { getL2HashFromL1DepositInfo } from '../../../utils/getL2HashFromL1DepositInfo.js' import { getTransactionDepositedEvents } from '../../../utils/getTransactionDepositedEvents.js' -export type GetL2HashesForDepositTxParamters = { +export type GetL2HashesForDepositTxParameters = { l1TxHash: Hash l1TxReceipt?: never } | { l1TxHash?: never; l1TxReceipt: TransactionReceipt } @@ -18,7 +18,7 @@ export type GetL2HashesForDepositTxReturnType = Hash[] */ export async function getL2HashesForDepositTx( client: PublicClient, - { l1TxHash, l1TxReceipt }: GetL2HashesForDepositTxParamters, + { l1TxHash, l1TxReceipt }: GetL2HashesForDepositTxParameters, ): Promise { const txReceipt = l1TxReceipt ?? await getTransactionReceipt(client, { hash: l1TxHash }) const depositEvents = getTransactionDepositedEvents({ txReceipt }) diff --git a/src/decorators/publicL1OpStackActions.ts b/src/decorators/publicL1OpStackActions.ts index d34512d..fa4a977 100644 --- a/src/decorators/publicL1OpStackActions.ts +++ b/src/decorators/publicL1OpStackActions.ts @@ -1,7 +1,7 @@ import type { Chain, PublicClient, Transport } from 'viem' import { getL2HashesForDepositTx, - type GetL2HashesForDepositTxParamters, + type GetL2HashesForDepositTxParameters, type GetL2HashesForDepositTxReturnType, } from '../actions/public/L1/getL2HashesForDepositTx.js' import { @@ -61,7 +61,7 @@ export type PublicL1OpStackActions< TChain extends Chain | undefined = Chain | undefined, > = { getL2HashesForDepositTx: ( - args: GetL2HashesForDepositTxParamters, + args: GetL2HashesForDepositTxParameters, ) => Promise getLatestProposedL2BlockNumber: ( args: GetLatestProposedL2BlockNumberParameters,