Skip to content

Commit

Permalink
Merge pull request #170 from base-org/wbnns/resolve-165
Browse files Browse the repository at this point in the history
fix(GetL2HashesForDepositTxParamters): Resolve typo
  • Loading branch information
zencephalon authored Dec 5, 2023
2 parents 656d8d6 + 74f07ed commit 44d6651
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/actions/public/L1/getL2HashesForDepositTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -18,7 +18,7 @@ export type GetL2HashesForDepositTxReturnType = Hash[]
*/
export async function getL2HashesForDepositTx<TChain extends Chain | undefined>(
client: PublicClient<Transport, TChain>,
{ l1TxHash, l1TxReceipt }: GetL2HashesForDepositTxParamters,
{ l1TxHash, l1TxReceipt }: GetL2HashesForDepositTxParameters,
): Promise<GetL2HashesForDepositTxReturnType> {
const txReceipt = l1TxReceipt ?? await getTransactionReceipt(client, { hash: l1TxHash })
const depositEvents = getTransactionDepositedEvents({ txReceipt })
Expand Down
4 changes: 2 additions & 2 deletions src/decorators/publicL1OpStackActions.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -61,7 +61,7 @@ export type PublicL1OpStackActions<
TChain extends Chain | undefined = Chain | undefined,
> = {
getL2HashesForDepositTx: (
args: GetL2HashesForDepositTxParamters,
args: GetL2HashesForDepositTxParameters,
) => Promise<GetL2HashesForDepositTxReturnType>
getLatestProposedL2BlockNumber: (
args: GetLatestProposedL2BlockNumberParameters<TChain>,
Expand Down

0 comments on commit 44d6651

Please sign in to comment.