Skip to content

Instantly share code, notes, and snippets.

@Turupawn
Created February 15, 2022 22:37
Show Gist options
  • Save Turupawn/49c1a94ac12a95ad21012fed792d49b2 to your computer and use it in GitHub Desktop.
Save Turupawn/49c1a94ac12a95ad21012fed792d49b2 to your computer and use it in GitHub Desktop.
ejemplo truffle config
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