Object-Oriented Programming · Coinbase · Easy
Create a function generateNFTs that builds a collection of NFT objects from a sequence of attribute maps. Each NFT object must store a unique integer id and an attributes map copied from the corresponding input. The function receives zero or more attribute maps as separate arguments. Process the maps from left to right. Assign the first NFT id = 1, the second id = 2, and continue increasing by one for each subsequent NFT. Return the generated NFTs in the same order as the…
Checking your access…