nile icon indicating copy to clipboard operation
nile copied to clipboard

Document the posibility to send params from nile cli to starknet cli

Open ericnordelo opened this issue 2 years ago • 0 comments

🧐 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.

ericnordelo avatar Sep 02 '22 18:09 ericnordelo