Change polygon cfg
This commit is contained in:
parent
da2fc8b4c6
commit
1630b18b47
|
@ -1,7 +1,6 @@
|
|||
const HDWalletProvider = require('@truffle/hdwallet-provider');
|
||||
const HDWalletProvider = require("@truffle/hdwallet-provider");
|
||||
|
||||
|
||||
require('dotenv').config({path:'.env'});
|
||||
require("dotenv").config({ path: ".env" });
|
||||
|
||||
/**
|
||||
* Use this file to configure your truffle project. It's seeded with some
|
||||
|
@ -29,9 +28,9 @@ require('dotenv').config({path:'.env'});
|
|||
// const mnemonic = fs.readFileSync('.secret').toString().trim();
|
||||
|
||||
module.exports = {
|
||||
contracts_directory: './contracts',
|
||||
contracts_build_directory: './build/contracts',
|
||||
migrations_directory: './migrations/polygon',
|
||||
contracts_directory: "./contracts",
|
||||
contracts_build_directory: "./build/contracts",
|
||||
migrations_directory: "./migrations/polygon",
|
||||
/**
|
||||
* Networks define how you connect to your ethereum client and let you set the
|
||||
* defaults web3 uses to send transactions. If you don't specify one truffle
|
||||
|
@ -50,9 +49,9 @@ module.exports = {
|
|||
// options below to some value.
|
||||
//
|
||||
development: {
|
||||
host: '127.0.0.1', // Localhost (default: none)
|
||||
host: "127.0.0.1", // Localhost (default: none)
|
||||
port: 8545, // Standard Ethereum port (default: none)
|
||||
network_id: '*', // Any network (default: none)
|
||||
network_id: "*", // Any network (default: none)
|
||||
},
|
||||
// Another network with more advanced options...
|
||||
// advanced: {
|
||||
|
@ -68,10 +67,11 @@ module.exports = {
|
|||
mumbai: {
|
||||
provider: () => new HDWalletProvider(process.env.ETH_PRIVATE_KEY, process.env.MUMBAI_PROVIDER),
|
||||
network_id: 80001,
|
||||
//gas: 4465030,
|
||||
gasPrice: 80000000000,
|
||||
gas: 7000000,
|
||||
//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 )
|
||||
timeoutBlocks: 50, // # of blocks before a deployment times out (minimum/default: 50)
|
||||
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
|
||||
},
|
||||
// Useful for private networks
|
||||
// private: {
|
||||
|
@ -89,16 +89,16 @@ module.exports = {
|
|||
// Configure your compilers
|
||||
compilers: {
|
||||
solc: {
|
||||
version: '0.7.6', // Fetch exact version from solc-bin (default: truffle's version)
|
||||
version: "0.7.6", // Fetch exact version from solc-bin (default: truffle's version)
|
||||
// docker: true, // Use '0.5.1' you've installed locally with docker (default: false)
|
||||
// settings: { // See the solidity docs for advice about optimization and evmVersion
|
||||
optimizer: {
|
||||
enabled: false,
|
||||
runs: 200
|
||||
runs: 200,
|
||||
},
|
||||
// evmVersion: 'byzantium'
|
||||
// }
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
// Truffle DB is currently disabled by default; to enable it, change enabled:
|
||||
|
|
Loading…
Reference in New Issue