Psychedelic / DAB-js

JS library that wraps necessary methods to integrate DAB and its NFTs.
GNU General Public License v3.0
28 stars 19 forks source link

fix(nft_origyn): get correct token id from balance response #103

Closed ENJATZ closed 2 years ago

ENJATZ commented 2 years ago

The nfts from the response of balance_of_nft_origyn contains an array of strings, each string is a token id.

Reference from ..src/interfaces/nft_origyn.ts:

export interface BalanceResponse {
  'nfts' : Array<string>,
  'sales' : Array<EscrowRecord>,
  'stake' : Array<StakeRecord>,
  'multi_canister' : [] | [Array<Principal>],
  'escrow' : Array<EscrowRecord>,
}

Changing the getUserTokens to reflect this.