When I tested on ganache-cli at local, I could test on 'truffle console development' with some accounts which ganache-cli gave. But at rinkeby, I can't use function_name(argumets, {from: specific rinkeby account})
form. Is it possible to set the specific account on 'truffle console rinkeby(and mainnet also)'? (Something like using web3.eth.
thing) If it is, how can I set that?
Truffle Console Rinkeby – How to Set Specific Account When Using Truffle Console Rinkeby
accountsrinkebysoliditytruffle
Best Answer
Since you are using HDWalletProvider it will only support accounts derived from the mnemonic. It doesn't know the private key required to sign messages from other addresses.
As alternative you pass to HDWalletProvider an array of private keys.