#can't deploy contract in hello world soroban quest

17 messages · Page 1 of 1 (latest)

lone summit
#

Helloo. I'm currently going through the soroban hello-world quest on gitpod. When I try to deploy the contract with

soroban contract deploy --wasm target/wasm32-unknown-unknown/release/soroban_hello_world_contract.wasm

I get

error: jsonrpc error: Parse error: missing field transactionData at line 1 column 1248

I follow the instructions in the docs and also the videos (taking into account an apparent change of the command soroban deploy to soroban contract deploy since they were filmed).

Any help would be greatly appreciated!

frozen rose
#

Are you up to date on the versions of soroban-cli and soroban-sdk?

#

For one, type soroban version, for the other check your Cargo.toml
Soroban-cli should be 20.0.0-rc4, soroban-sdk should be 20.0.0.rc-2

lone summit
#

I did sq pull on gitpod

#

thank you for the quick reply!

frozen rose
#

Ah yes, it looks like the repo may be outdated in that regard

#

try cargo install soroban-cli --version 20.0.0-rc4

#

And update the Cargo.toml file(s) you have to show [dependencies] soroban-sdk = { version = "20.0.0-rc2", workspace = true }

#

then run cargo clean and make build to re-compile

devout raptor
#

Thanks for the report! We're working on the updates this week, and hopefully will have them all wrapped up quickly

lone summit
#

indeed the sdk version on gitpod is 0.9.2 (btw this is also the case in the docs/getting started/storing data page where the full workspace Cargo.toml file is displayed)

I changed the sdk version in the workspace Cargo file (the contract-specific ones just take it from there with soroban-sdk = { workspace = true }) and installed the new cli (took forever), but I still get the same error

error: jsonrpc error: Parse error: missing field events at line 1 column 461

different column number though

make build did not work, yielded make: *** No rule to make target 'build'. Stop.

devout raptor
#

If you get that error in the soroban-quest workspace, that make error makes sense. We don't ship a Makefile in that repo any longer. Try cding into the particular quest contract you're working on, and run soroban contract build

lone summit
#

I did manage to build the contract with soroban contract build in the contract's directory and checked that the .wasm file is where it's supposed to be (target/...). So if that's what the make command was supposed to do it's done (sorry for not getting it, my coding skills/experience are quite limited). So everything is compiled and tested, yet I still get the above error.

devout raptor
#

No apologies necessary! Yeah, the make file was essentially a way to help build/compile the contract once written. The soroban CLI tool eventually incorporated the same helper, so we removed the Makefile altogether. If you look to the right-hand side of your terminal in the Gitpod workspace, it should tell you which Soroban environment you're interacting with (either Futurenet or Sandbox). You'll want to try running soroban contract deploy ... in the CLI - Futurenet terminal, if that's not where you are

lone summit
#

Already on futurenet

devout raptor
#

ok, cool. I'm sure I'll come across the same thing shortly (working on it now). I'll let you know what I find out 😁

lone summit
#

thanks a lot!