Created
March 27, 2019 18:41
-
-
Save andresaaap/733744530bd46047fc7c5c4b0d561f30 to your computer and use it in GitHub Desktop.
Example of a correct configuration of a provider to the Rinkeby Testnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const HDWalletProvider = require("truffle-hdwallet-provider"); | |
module.exports = { | |
networks: { | |
development: { | |
host: "127.0.0.1", | |
port: 8545, | |
network_id: "*" // Match any network id | |
}, | |
rinkeby: { | |
provider: function() { | |
return new HDWalletProvider("candy maple cake sugar pudding cream honey rich smooth crumble sweet treat", | |
"https://rinkeby.infura.io/v3/<Key>") | |
}, | |
network_id: '4', | |
gas: 4500000, | |
gasPrice: 10000000000, | |
} | |
}, | |
compilers: { | |
solc: { | |
version: "^0.4.24", // A version or constraint - Ex. "^0.5.0" | |
// Can also be set to "native" to use a native solc | |
docker: false, // Use a version obtained through docker | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment