Si quiero usar HDWalletProvider
para implementar mi contrato en una dirección específica, ¿qué debo hacer?
rinkeby: {
provider: () => { return new HDWalletProvider("Mnemnoic", "https://ropsten.infura.io/v3/KEY") },
network_id: 4,
gas: 7003605,
gasPrice: 21,
host: "localhost",
from: "0xdc18ee70c6215ac9c81a3f704648b8c8a6ec7201"
}
Estoy recibiendo el siguiente error
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Unknown address - unable to sign transaction for this address: "0xdc18ee70c6215ac9c81a3f704648b8c8a6ec7201"
Según la gente de truffle-hdwallet, es probable que el problema se deba a que no es la primera cuenta generada con ese mnemotécnico. Si miras el mnemotécnico en diferentes redes, es lo mismo.
https://github.com/trufflesuite/truffle-hdwallet-provider/issues/7
Yo tuve el mismo problema. Eliminó el de y resolvió ese error. HD Wallet puede averiguar la dirección de origen mediante el mnemotécnico
rinkeby: {
provider: () => { return new HDWalletProvider("Mnemnoic", "https://ropsten.infura.io/v3/KEY") },
network_id: 4,
gas: 7003605,
gasPrice: 21,
host: "localhost",
from: "0xdc18ee70c6215ac9c81a3f704648b8c8a6ec7201"
}
El network_id de Rinkeby debería ser 4, según recuerdo, pero ¿da el enlace infura para Ropsten? " https://ropsten.infura.io/v3/KEY "? No estoy seguro si tienen alguna relación por tu error.
Olivers De Abreu