0

I am following these tutorials:

The similarity with these tutorials is that in both of them, after you build and compile your contract, you can locally call any contract function and see its result, either by deploying the contract or calling the WASM directly, without the need to deploy the contract to any network. When I try to do it using the new soroban-cli version, it requires me to pass the network, the newtork rpc and a source-account.

Why is this happening? Is there still a way to just call a contract function from its wasm without the need to deploy it? I followed exactly this tutorial and in her console it doesn't require it.

bruno@DESKTOP-3JSL9LR:/mnt/c/Users/bruno/my-backup/soroban-hello-world$ soroban contract deploy --wasm target/wasm32-unknown-unknown/release/hello_world.wasm
error: the following required arguments were not provided:
  --source-account <SOURCE_ACCOUNT>
  --rpc-url <RPC_URL>
  --network-passphrase <NETWORK_PASSPHRASE>
  --network <NETWORK>

Edit: I was asked to be more specific, but I'm not sure what else I can provide or how to be clearer. I was trying to follow this tutorial from the Stellar YouTube Channel, but it doesn't work anymore with the current Soroban CLI. At minute 23:55, she writes in the terminal "soroban contract deploy --wasm" and manages to deploy successfully. However, when I try to do the same, it returns an error requiring me to pass additional parameters such as network, RPC network, etc.

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Commented May 26 at 20:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.