DEV Community

Discussion on: A Concise Hardhat Tutorial: Part 3 - ERC721 NFT

Collapse
 
garyrob profile image
Gary Robinson

I don't understand why, in tokenURI(), parts is declared as

string[17] memory parts

when only the first 3 elements are accessed. Why isn't it string[3]??

Collapse
 
yakult profile image
fangjun

Should be string[3].

I take it from loot's contract for quick and dirty implementation. And forget to change the details.

Thanks.