MeshJS / mesh

An open-source library to advance Web3 development on Cardano

Home Page:https://meshjs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useAssets() Asset type doesn't include all the properties.

esot321c opened this issue · comments

when using useAssets in meshsdk/react, the Asset type doesn't include all the properties. The given type:

export declare type Asset = {
    unit: Unit;
    quantity: Quantity;
};

But the actual repsonse is typed like this:

{
    "unit": string;
    "policyId": string;
    "assetName": string;
    "fingerprint": string;
    "quantity": string;
  }

properties such as policyId, assetName and, fingerprint can be infred from unit