Closed meseta closed 2 years ago
I gave it a try, and everything went smoothly. What value are you using for chain
?
after our team reached out to Moralis, it was confirmed that there was an issue on Moralis's end where the server was not returning the value. This was also reported by others, for example here: https://forum.moralis.io/t/solved-cannot-read-properties-of-undefined-reading-touppercase/19607/11
Since this appears to be resolved, I am closing issue
New Bug Report
Checklist
Issue Description
running
Moralis.EvmApi.nft.getNFTMetadata()
and then trying to use theresult
getter causes an error "Uncaught TypeError: Cannot read properties of undefined (reading 'toUpperCase')"This appears to be due to the underlying API endpoint not returning a value for
contract_type
which causes validateValidEvmcontractType to fail.Steps + code to reproduce
Actual Outcome
The following error:
Expected Outcome
The parsed result is successfully displayed
Environment
Running in node.js
Server
Client
Logs