Skip to content

Commit 44d6651

Browse files
authored
Merge pull request #170 from base-org/wbnns/resolve-165
fix(GetL2HashesForDepositTxParamters): Resolve typo
2 parents 656d8d6 + 74f07ed commit 44d6651

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/actions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export { type AccountProof, getProof, type GetProofParameters, type StorageProof
33
// Public L1 actions
44
export {
55
getL2HashesForDepositTx,
6-
type GetL2HashesForDepositTxParamters,
6+
type GetL2HashesForDepositTxParameters,
77
type GetL2HashesForDepositTxReturnType,
88
} from './public/L1/getL2HashesForDepositTx.js'
99
export {

src/actions/public/L1/getL2HashesForDepositTx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getTransactionReceipt } from 'viem/actions'
33
import { getL2HashFromL1DepositInfo } from '../../../utils/getL2HashFromL1DepositInfo.js'
44
import { getTransactionDepositedEvents } from '../../../utils/getTransactionDepositedEvents.js'
55

6-
export type GetL2HashesForDepositTxParamters = {
6+
export type GetL2HashesForDepositTxParameters = {
77
l1TxHash: Hash
88
l1TxReceipt?: never
99
} | { l1TxHash?: never; l1TxReceipt: TransactionReceipt }
@@ -18,7 +18,7 @@ export type GetL2HashesForDepositTxReturnType = Hash[]
1818
*/
1919
export async function getL2HashesForDepositTx<TChain extends Chain | undefined>(
2020
client: PublicClient<Transport, TChain>,
21-
{ l1TxHash, l1TxReceipt }: GetL2HashesForDepositTxParamters,
21+
{ l1TxHash, l1TxReceipt }: GetL2HashesForDepositTxParameters,
2222
): Promise<GetL2HashesForDepositTxReturnType> {
2323
const txReceipt = l1TxReceipt ?? await getTransactionReceipt(client, { hash: l1TxHash })
2424
const depositEvents = getTransactionDepositedEvents({ txReceipt })

src/decorators/publicL1OpStackActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Chain, PublicClient, Transport } from 'viem'
22
import {
33
getL2HashesForDepositTx,
4-
type GetL2HashesForDepositTxParamters,
4+
type GetL2HashesForDepositTxParameters,
55
type GetL2HashesForDepositTxReturnType,
66
} from '../actions/public/L1/getL2HashesForDepositTx.js'
77
import {
@@ -61,7 +61,7 @@ export type PublicL1OpStackActions<
6161
TChain extends Chain | undefined = Chain | undefined,
6262
> = {
6363
getL2HashesForDepositTx: (
64-
args: GetL2HashesForDepositTxParamters,
64+
args: GetL2HashesForDepositTxParameters,
6565
) => Promise<GetL2HashesForDepositTxReturnType>
6666
getLatestProposedL2BlockNumber: (
6767
args: GetLatestProposedL2BlockNumberParameters<TChain>,

0 commit comments

Comments
 (0)