Skip to content

Commit

Permalink
Allow contract name to be generic
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Jun 27, 2024
1 parent 11a99f4 commit 7b40299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/Actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type WithContractAddress<
*/
export type ActionParameters<Args, ContractName extends string, Curried extends boolean> = Prettify<
Curried extends false
? RemoveUndefinedArgs<Args & { sequencerInbox: Address }>
? RemoveUndefinedArgs<Args & { [key in ContractName]: Address }>
: Args extends { args?: undefined }
?
| {
Expand Down

0 comments on commit 7b40299

Please sign in to comment.