Open jlw264 opened 3 years ago
hey @jlw264, you are correct that most view transaction should incur gas, however you will need to specify view
on the function signature, otherwise it will consider the transaction state-changing and charge gas
which function did you call to fetch tokenURI?
It's likely a function call, not call a transactions
If I understand right, tokenURI(tokenId) is inherited from the ERC721 contract and anyone should be able to read it (without charging gas). Why does scaffold-eth make me send a transaction to get this? Is something wrong with my ABI?
Link to my contract: https://github.com/jlw264/farmed-particles/blob/main/packages/hardhat/contracts/FarmedParticle.sol
See bottom of screen in below picture: