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