Hello to all,
I was wondering how I can deploy contract using the cli oz deploy
in case I want to do it using ethers.js provider.
The reason for this is that my private blockchain uses basic auth and therefore I need my provider to be as the following:
const Provider = new ethers.providers.JsonRpcProvider(
{
url: 'http://localhost:8545',
user: 'user',
password: 'password'
})
const ownerWallet = new ethers.Wallet('PRIVATEKEY').connect(Provider)
Where and how should I use this in the network.js file?
From what I see it is only possible to use HDWalletProvider and as far as I know I can’t put user and password for the basic auth when using the HDWalletProvider.
Any idea how to do this?
Regards,
Nicola