Skip to content

Commit

Permalink
Update OwnedNFTs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aglawson committed Nov 30, 2023
1 parent 0a03f2f commit d034da7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions functions/OwnedNFTs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,19 @@ export const OwnedNFTs = async (req) => {
const total = nfts.totalCount
let data = {total: 0, nfts: []}

for (const n of nfts.ownedNfts) {
data.nfts.push({
n
// name: n.contract.name,
// symbol: n.contract.symbol,
// address: n.contract.address,
// token_id: n.tokenId
})
}
// for (const n of nfts.ownedNfts) {
// data.nfts.push({
// name: n.contract.name,
// symbol: n.contract.symbol,
// address: n.contract.address,
// token_id: n.tokenId
// })
// }
data.total = total

const result = {
inputs: {wallet: wallet},
output: {data: data},
output: {data: nfts.ownedNfts},
success: true
}

Expand Down

0 comments on commit d034da7

Please sign in to comment.