nile
nile copied to clipboard
Document the posibility to send params from nile cli to starknet cli
🧐 Motivation
For example, if you need to send a transaction (invoke or call) fron nile cli to a proxy contract:
nile invoke proxy_contract function_name
You will receive the error: Error: AbiFormatError: Function 'function_name' not found.
Because the function is not in the proxy ABI, but in the implementation.
But starknet cli allows to specify the ABI with the --abi option, and we can pass options to starknet from nile like this:
nile invoke proxy_contract function_name -- --abi artifacts/abis/implementation.json
📝 Details
Nile is invoking starknet cli in the background, and allows to send params as positional arguments like this.