mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-10-01 01:06:17 -04:00
skip migrations
This commit is contained in:
parent
a657860418
commit
e1e989986f
@ -2,5 +2,8 @@
|
|||||||
const Migrations = artifacts.require('Migrations')
|
const Migrations = artifacts.require('Migrations')
|
||||||
|
|
||||||
module.exports = function(deployer) {
|
module.exports = function(deployer) {
|
||||||
|
if(deployer.network === 'mainnet') {
|
||||||
|
return
|
||||||
|
}
|
||||||
deployer.deploy(Migrations)
|
deployer.deploy(Migrations)
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
"build:contract": "npx truffle compile",
|
"build:contract": "npx truffle compile",
|
||||||
"test": "npx truffle test",
|
"test": "npx truffle test",
|
||||||
"migrate": "npx truffle migrate --network kovan --reset",
|
"migrate": "npx truffle migrate --network kovan --reset",
|
||||||
|
"migrate:mainnet": "npx truffle migrate --network mainnet --reset",
|
||||||
"migrate:dev": "npx truffle migrate --network development --reset",
|
"migrate:dev": "npx truffle migrate --network development --reset",
|
||||||
"browserify": "npx browserify cli.js -o index.js --exclude worker_threads",
|
"browserify": "npx browserify cli.js -o index.js --exclude worker_threads",
|
||||||
"eslint": "npx eslint --ignore-path .gitignore .",
|
"eslint": "npx eslint --ignore-path .gitignore .",
|
||||||
|
@ -51,6 +51,15 @@ module.exports = {
|
|||||||
// timeoutBlocks: 200,
|
// timeoutBlocks: 200,
|
||||||
skipDryRun: true
|
skipDryRun: true
|
||||||
},
|
},
|
||||||
|
mainnet: {
|
||||||
|
provider: () => new HDWalletProvider(process.env.PRIVATE_KEY, 'https://mainnet.infura.io/v3/c7463beadf2144e68646ff049917b716'),
|
||||||
|
network_id: 1,
|
||||||
|
gas: 5000000,
|
||||||
|
gasPrice: utils.toWei('2', 'gwei'),
|
||||||
|
// confirmations: 0,
|
||||||
|
// timeoutBlocks: 200,
|
||||||
|
skipDryRun: true
|
||||||
|
},
|
||||||
|
|
||||||
// Useful for private networks
|
// Useful for private networks
|
||||||
// private: {
|
// private: {
|
||||||
|
Loading…
Reference in New Issue
Block a user