floating / eth-provider

A Universal Ethereum Provider Client
GNU General Public License v3.0
189 stars 33 forks source link

hardhat deploy with ledger #53

Open nschwermann opened 2 years ago

nschwermann commented 2 years ago

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

mediavrog commented 2 years ago

I get the same error

prakashshnu10 commented 1 year ago

I have seen your example here NomicFoundation/hardhat#1159 (comment)

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

It's resolved??