feat(forge): script
should not default to run()
if contract has only one function with another signature
#5282
Labels
T-feature
Type: feature
Component
Forge
Describe the feature you would like
Let's take following script as an example:
Right now, to run it I have to run following command:
forge script MintTokens <token_address> <amount_to_mint> --sig 'run(address,uint256)'
If I run just
forge script MintTokens <token_address> <amount_to_mint>
it fails with errorFunction run() is not implemented in your script.
It would be handy if in case when script contract has only one function, forge defaulted to it and not to
run()
Additional context
No response
The text was updated successfully, but these errors were encountered: