I'm trying to deploy a contract to rinkeby using truffle. In the truffle-config file, in the HD wallet provider, you are supposed to specify a mnemonic and also your api from infura. The problem is that I do not have the mnemonic since metamask doesn't give you the option to export such and so all I have is the private key.
It doesn't work this way when I use my private key instead.
Here's a snippet of my code.
rinkeby: {
provider: () => new HDWalletProvider({
privateKeys: private_keys,
providerOrUrl: "https://rinkeby.infura.io/v3/a0f72a61273d4f1d9c5de301fecb8e64",
numberOfAddresses: 2
}),
network_id: 4, // Ropsten's id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
Where const private_keys = ["..."] I get an error saying: TypeError: mnemonic.includes is not a function.