📅  最后修改于: 2022-03-11 15:02:26.980000             🧑  作者: Mango
// Check if you have config this logic or not, then update your .env file
// with your current network RPC
if (process.env.NEXT_PUBLIC_WORKSPACE_URL) {
rpcEndpoint = process.env.NEXT_PUBLIC_WORKSPACE_URL
}
// Or simply replace this code
const provider = new ethers.providers.JsonRpcProvider("YOUR_RPC_URI")