Comments (3)
Hey team! Please add your planning poker estimate with Zenhub @hui-an-yang @roxaneletourneau @zainen
from taquito.
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:
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.
We have suggested an approach that Taquito supports and that is compliant with tzip-12. Closing
from taquito.
Related Issues (20)
- SPIKE: Comprehensive testing of Michelson Encoder
- USER STORY: add Tezos Foundation teztnet RPCs
- Not working with Angular SSR HOT 1
- Support transferring ghostnet tez to etherlink in test-dapp
- Document instructions to transfer etherlink tez back to ghostnet HOT 3
- Update README to match most updated information
- Add features to the test dApp related to staking
- Update remaining Taquito references of getActiveAccount()
- Investigate michelson-encoder ticket token changes HOT 1
- Update MichelsonEncoder document, informing users of the breaking changes
- Missing `delayed_operation_hash` on `OperationMetadataBalanceUpdates `
- Unable to run integration-test against private rpc node with node v20 HOT 1
- [RPC] Add a getDelegates endpoint that points to minimal stake params or options
- [Sandbox] Remove Flextesa tests from CI HOT 2
- Missing fields in METADATA_BALANCE_UPDATES_CATEGORY in @taquito 19 HOT 1
- Missing new baker types (Paris protocol) in `FrozenStaker` HOT 1
- Taquito Test Dapp - text changes needed
- Support the `transferTicket` operation in the wallet API
- SPIKE: Lerna/Nx can hide important build problems of individual packages. HOT 1
- Add a security config to prevent pushing to master
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 taquito.