Conversation
penovicp
left a comment
There was a problem hiding this comment.
I don't think the ArgsOrCalldataWithOptions type is accurate, the ContractOptions object is used as a concatenation to the regular parameters of the encapsulated method and these get passed to the splitArgsAndOptions utility. Example from the tests: link. So the type would be closer to something like this: [...ArgsOrCalldata, ContractOptions?]
The issue boils down to differentiating whether the last element is a ContractOptions or a RawArgsObject or MultiType object.
Yea it is [ArgsOrCalldataWithOptions] actually as args are array. |
|
OK i belave at least now i fixed type |
|
Yes, that is a more accurate representation. I believe the spread I don't see any utility in restoring the full support, so refactoring the code to exclude the supported scenario seems preferable, it should also simplify detecting whether a |
|
I agree focused on this pr to fix type and new one to propose solution |
Motivation and Resolution
fix type splitArgsAndOptions
Usage related changes
type updated to represent better what it is
Checklist: