We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using contract aliases they can't be used in contract arguments (see example)
[ /tmp/soroban-project ] > echo $MAIN_CONTRACT CB4RERBQMEEXGUFPRZDIN46WTMETHR6EMTWRWXIZO6Q3527GTZI3EK7U [ /tmp/soroban-project ] > echo $ADD_CONTRACT CCXZXWJ4FXPEG2453SOYSU5BHCVXSAGDJX63TGNCM6KTCOFJ2KJUTQKF [ /tmp/soroban-project ] > stellar contract alias ls ℹ️ Aliases available for network 'Test SDF Network ; September 2015' test_add_contract: CCXZXWJ4FXPEG2453SOYSU5BHCVXSAGDJX63TGNCM6KTCOFJ2KJUTQKF test_main: CB4RERBQMEEXGUFPRZDIN46WTMETHR6EMTWRWXIZO6Q3527GTZI3EK7U [ /tmp/soroban-project ] > stellar contract invoke --id $MAIN_CONTRACT --network testnet -- add_with --contract $ADD_CONTRACT --x 9 --y 10 ℹ️ Send skipped because simulation identified as read-only. Send by rerunning with `--send=yes`. 19 [ /tmp/soroban-project ] > stellar contract invoke --id test_main --network testnet -- add_with --contract $ADD_CONTRACT --x 9 --y 10 ℹ️ Send skipped because simulation identified as read-only. Send by rerunning with `--send=yes`. 19 [ /tmp/soroban-project ] > stellar contract invoke --id test_main --network testnet -- add_with --contract test_add_contract --x 9 --y 10 ❌ error: parsing argument contract: value is not parseable to Some( Address, )
As a result, it's required to pass contract id as an env variable or just string
CLI to be able to convert contract alias to Address internally when calling contracts
Using env variables
The text was updated successfully, but these errors were encountered:
Here are clues on how I intend to go about it:
Sorry, something went wrong.
willemneal
Successfully merging a pull request may close this issue.
What problem does your feature solve?
When using contract aliases they can't be used in contract arguments (see example)
As a result, it's required to pass contract id as an env variable or just string
What would you like to see?
CLI to be able to convert contract alias to Address internally when calling contracts
What alternatives are there?
Using env variables
The text was updated successfully, but these errors were encountered: