I'm deploying my contract and I want to update the front-end with the contract addresses and the ABI.
But the update fails with the error below. What I'm I doing wrong?
Error
Updating front end...
An unexpected error occurred:
Error: ERROR processing /Users/k_frankline/projects/SaveAKid/backend/deploy/update-front-end.js:
TypeError: contractAddresses[chainId].includes is not a function
at updateContractAddresses (/Users/k_frankline/projects/SaveAKid/backend/deploy/update-front-end.js:37:37)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I'm deploying my contract and I want to update the front-end with the contract addresses and the ABI. But the update fails with the error below. What I'm I doing wrong?
Error
Package.json
Update Frontend Script