Giter Club home page Giter Club logo

Comments (3)

dsawali avatar dsawali commented on July 30, 2024

Hey team! Please add your planning poker estimate with Zenhub @hui-an-yang @roxaneletourneau @zainen

from taquito.

dsawali avatar dsawali commented on July 30, 2024

Hello @pewulfman, thanks for writing this ticket. I looked a bit further into your contract at KT1FzbvvG8Y6GE4VU7iyGqT7M5TLWzKkDC5X.

And I found a few things that explain why parsing failed in Taquito. Taquito follows the Tzip12 format as stated here https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-12/tzip-12.md#token-metadata.

Taquito expects what we call a MichelsonMap object, and specifically for token metadata, this form:

{
  name: "",
  symbol: "",
  decimals: "",
}

The error that you are receiving, as you have already stated above, is due to Taquito not being able to find the decimals key in your object (specifically Token 0 and 2).

And looking into the contract in tzkt, Token 0 metadata looks like this:
image

While we can physically see the Tzip12 metadata format correctly nested inside data, it's not expected for Taquito to receive extended forms of the metadata, or do any parsing for non-standard forms of it. The correct example of metadata would be in the direct map as you have written for Token 1 and 3.

Having said that, I don't think we can support the format you are using. While it is reasonable request, we would like to keep Taquito to be as in-line and compliant with Tzip12 as possible. Please let us know if you have any other concerns.

from taquito.

Innkst avatar Innkst commented on July 30, 2024

We have suggested an approach that Taquito supports and that is compliant with tzip-12. Closing

from taquito.

Related Issues (20)

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.