Comments (5)
solved #23
from docs.
Happens with v2.0.0-alpha.3
as well which seems to be the current version to use.
from docs.
Also it needs to run junod q tx 1405DEEA2C3947526B265FDD199578A7377143FAB397C034A953E1866B06FEF6 -o json
to get logs result
from docs.
Yep. I think the diff for getting the code ID now looks something like this:
-RES=$(junod tx wasm store cw_erc20.wasm --from <your-key> --chain-id=<chain-id> --gas auto -y)
-CODE_ID=$(echo $RES | jq -r '.logs[0].events[0].attributes[-1].value')
+TX=$(junod tx wasm store cw_erc20.wasm --from <your-key> --chain-id=<chain-id> --gas auto --output json -y | jq -r '.txhash')
+CODE_ID=$(junod query tx $TX --output json | jq -r '.logs[0].events[-1].attributes[0].value')
from docs.
using -o json will not always result in the output being json. i have only ever had great success getting json output bybsetting the config.toml to output json. alternatively you can curl the json rpc.
from docs.
Related Issues (12)
- upgrade the default page HOT 1
- clarify origination and motivation
- Add link to how to create/generate keys for the erc20 tutorial
- Update "Joining Mainnet" HOT 1
- Update "Joining testnet"
- Update "Delegations Handbook" HOT 4
- Update "modules" reference
- Remove ibc-go page.
- Replace ERC-20 page with CW-20 HOT 3
- TODO: Docs additions & questions to answer
- duplicate instruction in `setting-up-cosmovisor` docs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.