This change occurred in the last 24-48 hours.
matic
is no longer a valid option for the chain
member in options
for this call:
Web3Api.account.getNFTsForContract(options);
Our dApp was working the last 2 days, no updates. It was breaking today on the call above.
The fix was updating the chain enum value to polygon
. The docs are outdated on this.
Error Stack:
POST https://REDACTED.usemoralis.com:2053/server/functions/getNFTsForContract 400
Error: chain must be a valid enum value
Raising the flag on this so others know what’s up and whether or not the docs should be updated or this change reverted.