Coder Social home page Coder Social logo

Comments (7)

samuelsramko avatar samuelsramko commented on June 12, 2024

Hey @silasbw, the reason why we are using the different naming of the field is the SDK being a first-class citizen for us now. We are and will be integrating multiple different sources for data and unifying them inside the SDK. It means that the SDK DTOs might look different than the API responses, which is perfectly correct. If you choose to use the API for this integration, you are of course free to do it. It's just the SDK which has different format.

from tatum-js.

silasbw avatar silasbw commented on June 12, 2024

We're using the SDK, so is your recommendation we do, like:

// The SDK types don't match the actual shape returned by the REST API: 
//    The REST API returns NftTokenDetail.type (not NftTokenDetail.tokenType)
// @ts-ignore
const tokenType = response.data[0].type

from tatum-js.

samuelsramko avatar samuelsramko commented on June 12, 2024

O I see, Thats something else. @Hathoriel, @hehe100596 or @alexloiko can you guys check this out pls?

from tatum-js.

samuelsramko avatar samuelsramko commented on June 12, 2024

Probably some typo during refactoring…

from tatum-js.

Hathoriel avatar Hathoriel commented on June 12, 2024

Hello yes @samuelsramko I will look on it.
Thanks for finding the issue @silasbw

from tatum-js.

Hathoriel avatar Hathoriel commented on June 12, 2024

👋 Hello @silasbw
The issue should be fixed in the version 3.1.7.
Hope this helps!
Have a nice day.

from tatum-js.

silasbw avatar silasbw commented on June 12, 2024

Thanks @Hathoriel 🙌

from tatum-js.

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.