When we have a deployer configuration DeploymentsManager creates a map of address and protocol. When you read config you can't init ledger provider.
const config: HardhatUserConfig = {
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
"goerli": 'ledger://0x84ded7b35314c823977c5794ed76e2a80f948269',
},
},
When we have a deployer configuration DeploymentsManager creates a map of address and protocol. When you read config you can't init ledger provider. const config: HardhatUserConfig = { namedAccounts: { deployer: { default: 0, // here this will by default take the first account as deployer "goerli": 'ledger://0x84ded7b35314c823977c5794ed76e2a80f948269', }, },