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

[Soroban] Cargo test does not work in Soroban examples #1177

Closed
lijamie98 opened this issue Jan 13, 2025 · 1 comment
Closed

[Soroban] Cargo test does not work in Soroban examples #1177

lijamie98 opened this issue Jan 13, 2025 · 1 comment
Assignees
Labels
bug Something isn't working dev-rel

Comments

@lijamie98
Copy link
Contributor

What version are you using?

Stellar CLI 22.1.0

What did you do?

In https://developers.stellar.org/docs/build/smart-contracts/example-contracts/custom-types#run-the-contract,

stellar contract invoke –wasm does not working.

What did you expect to see?

stellar contract invoke –wasm should invoke the smart contract.

What did you see instead?

jamie ~/projects/soroban-examples/custom_types (tags/v22.0.1) % stellar contract invoke \
    --wasm target/wasm32-unknown-unknown/release/soroban_custom_types_contract.wasm \
    --id 1 \
    -- \
    increment \
    --incr 5
error: unexpected argument '--wasm' found

  tip: to pass '--wasm' as a value, use '-- --wasm'

Usage: stellar contract invoke [OPTIONS] --id <CONTRACT_ID> --source-account <SOURCE_ACCOUNT> [-- <CONTRACT_FN_AND_ARGS>...]

For more information, try '--help'.

@lijamie98 lijamie98 added the bug Something isn't working label Jan 13, 2025
@github-project-automation github-project-automation bot moved this to Ideas in Dev Docs Jan 13, 2025
@briwylde08 briwylde08 moved this from Ideas to To Do in Dev Docs Jan 21, 2025
@briwylde08 briwylde08 reopened this Jan 28, 2025
@carstenjacobsen carstenjacobsen moved this from To Do to In Progress in Dev Docs Feb 4, 2025
@carstenjacobsen carstenjacobsen moved this from In Progress to In Review in Dev Docs Feb 11, 2025
briwylde08 pushed a commit that referenced this issue Feb 18, 2025
The invoke command used the `--wasm` parameter, which is not supported.
@carstenjacobsen
Copy link
Contributor

Resolved by #1269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev-rel
Projects
Status: In Review
Development

No branches or pull requests

3 participants