I reviewed the other questions that had a similar error and they didn't help with my problem.
On my main net contract, with my MetaMask on main net, I am getting this error when processing transactions. I was trying to send funds to my escrow contract and the dapp only uses DAI. It is saying there is no DAI contract on main net??
Error:
Uncaught in promise error: DAI has not been deployed to detected network, network artifact mismatch
Here is my migration deploy contract js file. I used Truffle:
const Escrow = artifacts.require("./Escrow.sol");
const DAI = artifacts.require("./DAI.sol");
const DAI_COIN_ADDRESS = "0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359";
const ARBITRATOR = "0x000000000000etc...";
module.exports = (deployer, network, accounts) => {
console.log(accounts[0]);
deployer.deploy(Escrow, DAI_COIN_ADDRESS, ARBITRATOR, {from: accounts[0]});
};