Response: unable to resolve type URL /cosmwasm.wasm.v1.MsgStoreCode
domsim001 opened this issue · comments
Hi,
the stack:
npm -v : 8.11.0
nodeJS : 16.15.0
rustup 1.24.3 (ce5817a94 2021-05-31)
cargo 1.61.0 (a028ae4 2022-04-29)
LocalTerra: Columbus Tag
terrain -V: @terra-money/terrain/0.3.1 linux-x64 node-v16.15.0
terrad version v2.0.0
Lauching : $ terrain deploy counter --signer test1
[...]
done
storing wasm bytecode on chain... !
Error: Request failed with status code 400
Response: unable to resolve type URL /cosmwasm.wasm.v1.MsgStoreCode: tx parse error: invalid request
Did you find out the reason?
counter project:
[terrastation@kubenode1 counter]$ more Cargo.toml
[package]
name = "counter"
version = "0.1.0"
authors = ["Terra Money core@terra.money"]
edition = "2018"
exclude = [
Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]
See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true
[features]
for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]
use library feature to disable all instantiate/execute/query exports
library = []
[package.metadata.scripts]
optimize = """docker run --rm -v "$(pwd)":/code
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry
cosmwasm/rust-optimizer:0.12.6
"""
[dependencies]
cosmwasm-std = "1.0.0"
cosmwasm-storage = "1.0.0"
cw-storage-plus = "0.13.2"
cw2 = "0.13.2"
schemars = "0.8.8"
serde = { version = "1.0.137", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.31" }
[dev-dependencies]
cosmwasm-schema = "1.0.0"
cw-multi-test = "0.13.2"
Thanks a lot,
ds
Also receiving this error:
➜ my-terra-dapp node -v
v16.15.0
➜ my-terra-dapp npm -v
8.5.5
➜ my-terra-dapp rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)
➜ my-terra-dapp cargo --version
cargo 1.61.0 (a028ae4 2022-04-29)
cargo.toml
[package]
name = "my-terra-dapp"
version = "0.1.0"
authors = ["Terra Money <core@terra.money>"]
edition = "2018"
exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true
[features]
# for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
library = []
[package.metadata.scripts]
optimize = """docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.6
"""
[dependencies]
cosmwasm-std = "1.0.0"
cosmwasm-storage = "1.0.0"
cw-storage-plus = "0.13.2"
cw2 = "0.13.2"
schemars = "0.8.8"
serde = { version = "1.0.137", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.31" }
[dev-dependencies]
cosmwasm-schema = "1.0.0"
cw-multi-test = "0.13.2"
LocalTerra: Columbus Tag
may causes the problem. use latest version(I guess main branch) of LocalTerra.
LocalTerra: Columbus Tag
may causes the problem. use latest version(I guess main branch) of LocalTerra.
This worked - but only after updating the port in config.terrain.json
to 1317
which I found from the docker compose up
logs from localterra.
Before that it was erroring with:
storing wasm bytecode on chain... !
Error: connect ECONNREFUSED 127.0.0.1:3060
Code: ECONNREFUSED
Hey, I will assume that this issue is already completed, if new issues appear with terrain feel free to submit them here https://github.com/terra-money/terrain/.
Thanks for reporting!