Giter VIP home page Giter VIP logo

Comments (5)

giansalex avatar giansalex commented on August 15, 2024 1

solved #23

from docs.

0xekez avatar 0xekez commented on August 15, 2024

Happens with v2.0.0-alpha.3 as well which seems to be the current version to use.

from docs.

giansalex avatar giansalex commented on August 15, 2024

Also it needs to run junod q tx 1405DEEA2C3947526B265FDD199578A7377143FAB397C034A953E1866B06FEF6 -o json to get logs result

from docs.

0xekez avatar 0xekez commented on August 15, 2024

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.

nullmames avatar nullmames commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.