eth-provider icon indicating copy to clipboard operation
eth-provider copied to clipboard

help deploying contract with ledger

Open nschwermann opened this issue 2 years ago • 2 comments

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);

nschwermann avatar Dec 05 '21 06:12 nschwermann

👍 interested in the second part of the question: how to use this provider with openzeppelin proxy pattern(hardhat-upgrades)?

tuleyko avatar Apr 22 '22 12:04 tuleyko

I'm also curious how to deploy an upgradeable proxy with this

j6i avatar Dec 11 '22 05:12 j6i