eth-provider
eth-provider copied to clipboard
help deploying contract with ledger
I have seen your example here https://github.com/nomiclabs/hardhat/issues/1159#issuecomment-789310120
and I follow you instructions
const frame = ethProvider('frame');
const contractFactory = await ethers.getContractFactory("MyContract");
const tx = await contractFactory.getDeployTransaction();
but get this:
const tx = await this.signer.sendTransaction(unsignedTx); ^
TypeError: Cannot read properties of null (reading 'sendTransaction')
Also, can your example be adapter to deploy an upgradable contract?
const test = await upgrades.deployProxy(contractFactory);
👍 interested in the second part of the question: how to use this provider with openzeppelin proxy pattern(hardhat-upgrades)?
I'm also curious how to deploy an upgradeable proxy with this