Created
February 15, 2022 22:37
-
-
Save Turupawn/49c1a94ac12a95ad21012fed792d49b2 to your computer and use it in GitHub Desktop.
ejemplo truffle config
This file contains hidden or 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'); | |
const fs = require('fs'); | |
const mnemonic = fs.readFileSync(".secret").toString().trim(); | |
module.exports = { | |
networks: { | |
development: { | |
host: "127.0.0.1", | |
port: 8545, | |
network_id: "*", | |
}, | |
rinkeby: { | |
provider: function () { | |
return new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/v3/a3e70735b4cf401b9148e1fea8f5a288"); | |
}, | |
network_id: 4, | |
gas: 4000000 | |
} | |
}, | |
mocha: { | |
}, | |
compilers: { | |
solc: { | |
version: "0.8.11", | |
} | |
}, | |
db: { | |
enabled: false | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment