CosmWasm / wasmd

Basic cosmos-sdk app with web assembly smart contracts
Other
359 stars 381 forks source link

tx wasm upload --block flag #1897

Open stongo opened 1 month ago

stongo commented 1 month ago

We're having an issue with v0.51.0 (also tested previous versions) where the -b or --block flag don't appear to work. We've tested putting the flag in different argument positions, to no effect.

For example:

wasmd tx wasm upload  /app/asc.wasm --from <redacted> --chain-id testing  --gas-prices 0.25ucosm --gas auto --gas-adjustment 1.3 -y --output json -b sync

Yields a response like:

{"height":"0","txhash":"<redacted>","codespace":"","code":0,"data":"","raw_log":"","logs":[],"info":"","gas_wanted":"0","gas_used":"0
","tx":null,"timestamp":"","events":[]} 

I would expect those fields to be populated, as in the documentation https://docs.cosmwasm.com/docs/getting-started/interact-with-contract/

Please advise how to make synchronous calls. It's quite important to our automation.