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; +};