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

Contract read errors with the wasm hash param #1318

Open
leighmcculloch opened this issue May 8, 2024 · 0 comments
Open

Contract read errors with the wasm hash param #1318

leighmcculloch opened this issue May 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@leighmcculloch
Copy link
Member

What version are you using?

$ soroban version
soroban 21.0.0-preview.1 (a643000a6cc15bf4bdf1e358881e5671834806b7)
soroban-env 21.0.1 (f2b734b6360ae04ba730307be3988619dd0f59a3)
soroban-env interface version 90194313216
stellar-xdr 21.0.1 (da0cbc6f75eaf03423810b8e9d730a03dfa8517e)
xdr curr (1a04392432dacc0092caaeae22a600ea1af3c6a5)

a643000

What did you do?

Setup:

$ soroban network add future \
    --rpc-url https://rpc-futurenet.stellar.org:443 \
    --network-passphrase 'Test SDF Future Network ; October 2022'
$ export SOROBAN_NETWORK=future
$ soroban keys generate me
$ SOROBAN_ACCOUNT=me

Reading with a wasm hash:

$ soroban contract read \
    --wasm-hash 390c0dc0c56b66db3847d1ab75d8bfda164bda5a7032a049921f5529202ddd95 \
    --durability persistent \
    --network future \
    --source me
error: Only contract data and code keys are allowed

What did you expect to see?

The ledger entry for the wasm hash.

What did you see instead?

Error.

@leighmcculloch leighmcculloch added the bug Something isn't working label May 8, 2024
@willemneal willemneal self-assigned this May 16, 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

2 participants