foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
279 stars 138 forks source link

Propose arguments when they are missing #2242

Open Arcticae opened 1 week ago

Arcticae commented 1 week ago

Which components does the task require to be changed? (think hard pls)

sncast

Description

Sometimes you can forget to write the calldata in CLI, to deploy, call or invoke In this case we should display what arguments (and what type) you should provide, with which flag etc.

If not - at least suggest on error that calldata is the problem if we detect it in the error message (that the calldata is too long, too short). The case applies to errors of type "failed to parse argument 3", "input too long for arguments" etc..