-
Notifications
You must be signed in to change notification settings - Fork 69
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
Contract deploying and invoking result in xdr processing error: xdr value invalid
whenever anything is changed slightly from examples
#1276
Comments
Hi! Thanks for reporting this issue. It looks like in your example that the transaction is being submitted to testnet which is currently running XDR v21, however the CLI in use is v20. You'll need to install the CLI v21 with:
|
I am still encountering this error :( I have run
and
Running
But running
|
Ah install the last Soroban CLI with:
We're renaming it to stellar-cli and I gave you the install command for it but you are running the Soroban command. |
I got it working using this command provided to me by the great dev relations folks at the Consensus Agenda hackathon!
|
Also detailed in this stack exchange post
What version are you using?
soroban 20.3.4 (f30a47fc58ace4437b0252919420838550481420)
soroban-env 20.3.0 (befdf4b2b6061bd6da20b0f93d539d6ad8d8be22)
soroban-env interface version 85899345920
stellar-xdr 20.1.0 (8b9d623ef40423a8462442b86997155f2c04d3a1)
xdr curr (b96148cd4acc372cc9af17b909ffe4b12c43ecb6)
What did you do?
Clone an example / setup hello world with
soroban contract init ./ --with-example increment
Running through the following commands with the code unedited results in expected behavior. Changing something as slight as count+=1 to count+=2 results in the error.
(error occurs here but if you run the deploy command again, it goes through and returns a C address)
Error occurs here no matter how many times you run the command
What did you expect to see?
The result of the increment routine being called.
What did you see instead?
xdr processing error: xdr value invalid
The text was updated successfully, but these errors were encountered: