Unable to setup upgradeable proxy contract using Hardhat features. Setup is working fine with other evm compatible blockchain.
Can we look into this?
How to replicate this issue?
const { ethers, upgrades } = require("hardhat");
async function main() {
// const gas = await ethers.provider.getGasPrice();
const CLCStakePool = await ethers.getContractFactory("CLCStakePool");
console.log("Deploying stakePool...");
const v1contract = await upgrades.deployProxy(CLCStakePool,[]);
await v1contract.waitForDeployment();
console.log("Contract deployed to:", await v1contract.getAddress());
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
use this deployment script, replace the contract with your own contract.
Expected results : it should deploy the contract fine and provide the contract address
Actual Results : Erroring out with "ProviderError: too many arguments, want at most 1"
Discussion (7)
please try this : github.com/GoPlugin/hardhat-proxy
please check the README
Would you please give a demo project on GitHub for test and troubleshooting?
please try this : github.com/GoPlugin/hardhat-proxy
please check the README
I also encountered this error. I will look into it later.
Hi,
do we have any updates here, please
Would you please open an issue on github.com/XinFinOrg/XDPoSChain, so we can track your problem.
github.com/XinFinOrg/XDPoSChain/is...