Skip to content
New issue

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

Command requires --source when it doesn't build a tx #1272

Open
leighmcculloch opened this issue Mar 21, 2024 · 0 comments
Open

Command requires --source when it doesn't build a tx #1272

leighmcculloch opened this issue Mar 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@leighmcculloch
Copy link
Member

What version are you using?

5f367ed

What did you do?

I tried to get the ID of an asset contract knowing its network and name:

$ soroban contract asset id --network testnet --asset native

What did you expect to see?

I expected to see the asset address, because the asset address can be calculated from just its name and network.

$ soroban contract asset id --network testnet --asset native
CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC

What did you see instead?

The CLI errored saying the source account must be specified. That requirement doesn't make much sense because a source account is only required for building transactions, and no transaction is being built in this command.

$ soroban contract asset id --network testnet --asset native
error: the following required arguments were not provided:
  --source-account <SOURCE_ACCOUNT>
@leighmcculloch leighmcculloch added the bug Something isn't working label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant