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 (14)
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 Daniel - I have tried this using ethers 5.7.0 version and added my comments in the git issue
github.com/XinFinOrg/XDPoSChain/is...
Please check my reply: github.com/XinFinOrg/XDPoSChain/is...
Working fine now!, thank you, this issue can be closed
This problem is fixed on testnet now. The patch will be applied on mainnet 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...
please try this : github.com/GoPlugin/hardhat-proxy
please check the README
Hello @logeswaran
We hope that the above issue is resolved, if the issue still persists then please let us know about it so that the team can resolve it on priority. It will be grateful to get an update within 72 hours or else it will be considered resolved.
Thank You.
Surely, will test it shortly and revert please
It is not resolved yet @mitali_blocksscan . This is being tracked in issue in the github -> github.com/XinFinOrg/XDPoSChain/is...