Skip to content

Commit

Permalink
feat: allow create rollup callvalue override (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc authored Sep 27, 2024
1 parent 8cd7791 commit ac848fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/createRollupPrepareTransactionRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type CreateRollupPrepareTransactionRequestParams<TChain extends Chain | u
WithRollupCreatorAddressOverride<{
params: CreateRollupParams;
account: Address;
value?: bigint;
publicClient: PublicClient<Transport, TChain>;
gasOverrides?: TransactionRequestGasOverrides;
}>
Expand All @@ -40,6 +41,7 @@ export type CreateRollupPrepareTransactionRequestParams<TChain extends Chain | u
export async function createRollupPrepareTransactionRequest<TChain extends Chain | undefined>({
params,
account,
value,
publicClient,
gasOverrides,
rollupCreatorAddressOverride,
Expand Down Expand Up @@ -81,7 +83,7 @@ export async function createRollupPrepareTransactionRequest<TChain extends Chain
chain: publicClient.chain,
to: rollupCreatorAddressOverride ?? getRollupCreatorAddress(publicClient),
data: createRollupEncodeFunctionData([paramsWithDefaults]),
value: createRollupGetCallValue(paramsWithDefaults),
value: value ?? createRollupGetCallValue(paramsWithDefaults),
account,
// if the base gas limit override was provided, hardcode gas to 0 to skip estimation
// we'll set the actual value in the code below
Expand Down

0 comments on commit ac848fa

Please sign in to comment.