From a83b53ffa95c9c9e1f0ba6e3be669426ccf5ad67 Mon Sep 17 00:00:00 2001 From: Christophe Date: Mon, 10 Jun 2024 10:06:20 +0000 Subject: [PATCH] Fix typing --- src/actions/addSequencerL2Batch.ts | 9 +++++---- src/types/Actions.ts | 4 ++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/actions/addSequencerL2Batch.ts b/src/actions/addSequencerL2Batch.ts index c288862c..37477077 100644 --- a/src/actions/addSequencerL2Batch.ts +++ b/src/actions/addSequencerL2Batch.ts @@ -9,14 +9,15 @@ import { } from 'viem'; import { sequencerInbox } from '../contracts'; import { WithContractAddress, ActionParameters, WithAccount } from '../types/Actions'; +import { Prettify } from '../types/utils'; type Args = GetFunctionArgs; type SequencerInboxABI = typeof sequencerInbox.abi; -type BuildAddSequencerL2BatchParameters = WithAccount< - WithContractAddress +type BuildAddSequencerL2BatchParameters = Prettify< + WithAccount> >; -export type BuildAddSequencerL2BatchActionParameters = WithAccount< - ActionParameters +export type BuildAddSequencerL2BatchActionParameters = Prettify< + WithAccount> >; export type BuildAddSequencerL2BatchReturnType = PrepareTransactionRequestReturnType; diff --git a/src/types/Actions.ts b/src/types/Actions.ts index 5bf794cd..c1bc3edc 100644 --- a/src/types/Actions.ts +++ b/src/types/Actions.ts @@ -43,3 +43,7 @@ export type ActionParameters; + +export type WithAccount = Args & { + account: Address; +};