Error: network does not support ENS (operation="ENS", network="maticmum", code=UNSUPPORTED_OPERATION, version=providers/5.5.3)

Hello When i Try to initialized contract this error is coming can anyone help me to fix this error
export const getStaticProps=async(context)=>{
const provider=new ethers.providers.JsonRpcProvider(
AlchemyProvider
);
const contract=new ethers.Contract(
context.params.address,
Campaign.abi,
provider
);

const donated=contract.filters.donated();
const allDonations=await contract.queryFilter(donated);

const title=await contract.campaignTitle();
const storyUrl=await contract.story();
const requiredAmount=await contract.requireAmount();
const receivedAmount=await contract.receiveAmount();
const image=await contract.image();
const owner=await contract.campaignOwner();

const Data={
    address:context.params.address.toString(),
    title,
    storyUrl,
    requiredAmount:ethers.utils.formatEther(requiredAmount),
    receivedAmount:ethers.utils.formatEther(receivedAmount),
    image,
    owner
}
allDonations.map((e)=>{

    return{
        donar:e.args.owner,
        amount:e.args.amount,
        timestamp:e.args.timestamp
    }
});

return{
    props:{
        allDonations,
        Data
    }
}

}
Here is my Contract
//SPDX-License-Identifier:Unlicensed

pragma solidity >0.8.0;

contract campaignFactory{

address [] public deployedCampaigns;

event createdCampaign(
    address indexed owner,
    string indexed category, 
    uint indexed timestamp,
    string title, 
    string storyUrI,
    uint requireAmount,
    string imageUrI,
    address campaignAddress
    );

function createCampaign(
    string memory title,
    string memory storyUrI,
    uint requireAmount,
    string memory category,
    string memory imageUrI
)public{

    Campaign newCampaign=new Campaign(title,storyUrI,requireAmount,msg.sender,imageUrI);

    deployedCampaigns.push(address(newCampaign));

    emit createdCampaign(msg.sender, category, block.timestamp, title, storyUrI, requireAmount, imageUrI,address(newCampaign));
}

}

contract Campaign{

event donated(address indexed owner,uint indexed amount,uint indexed timestamp);
string public campaignTitle;
string public story;
uint public requireAmount;
uint public receivedAmount;
address payable public campaignOwner;
string public image;

constructor(
    string memory _campaignTitle,
    string memory _story,
    uint _requireAmount,
    address _owner,
    string memory _image
    ){
        campaignTitle=_campaignTitle;
        story=_story;
        requireAmount=_requireAmount;
        campaignOwner=payable(_owner);
        image=_image;
    }

function donate()payable public{

    require(requireAmount>receivedAmount,"Require Amount is fullfilled");
    campaignOwner.transfer(msg.value);
    receivedAmount+=msg.value;

    emit donated(msg.sender, msg.value, block.timestamp);

}

}

Hey @ykkhan1997,

Can you let me know more precisely what youโ€™re trying to achieve here with the smart contract?

And is there any other code after the contract initialization? :eyes:

yes bro this is the crowd funding project I wrote a two contract one is store all the data of donat campign address [] public deployedCampaigns; then I initialized a second contract for create campaign Campaign newCampaign=new Campaign(title,storyUrI,requireAmount,msg.sender,imageUrI);

deployedCampaigns.push(address(newCampaign));

I store all the deployed campaign address in there (donat campign address [] public deployedCampaigns) when I try to pass these address like end points in getStaticPaths this error is coming

Error: network does not support ENS (operation=โ€œENSโ€, network=โ€œmaticmumโ€, code=UNSUPPORTED_OPERATION, version=providers/5.5.3)

export async function getStaticPaths(){

const provider=new ethers.providers.JsonRpcProvider(
    AlchemyProvider
);
const contract=new ethers.Contract(
    contractAddress,
    CampaignFactory.abi,
    provider
)
const getAllCampaigns=contract.filters.createdCampaign();
const allCampaigns=await contract.queryFilter(getAllCampaigns);

return{
    paths:allCampaigns.map((e)=>({

        params:{
            address:e.args.campaignAddress.toString()
        }
    })),

    fallback:true
}

};
export async function getStaticProps(context){

const provider=new ethers.providers.JsonRpcProvider(
    AlchemyProvider
);
const contract=new ethers.Contract(
    context.params.address,
    Campaign.abi,
    provider
);