-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from MoonSHRD/network/rinkeby
Network/rinkeby
- Loading branch information
Showing
7 changed files
with
246 additions
and
27,952 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,47 @@ | ||
const Migrations = artifacts.require("Migrations"); | ||
const Migrations = artifacts.require("./Migrations.sol"); | ||
|
||
module.exports = function (deployer) { | ||
deployer.deploy(Migrations); | ||
var custom_gas_price = '3'; // for rinkeby | ||
var wei_gas_price = web3.utils.toWei(custom_gas_price, 'gwei'); | ||
|
||
var maxFeePerGas_custom = '100'; // for rinkeby | ||
var maxPriorityFeePerGas_custom = '2'; | ||
var maxFeePerGas_wei = web3.utils.toWei(maxFeePerGas_custom, 'gwei'); | ||
var maxPriorityFeePerGas_wei = web3.utils.toWei(maxPriorityFeePerGas_custom, 'gwei'); | ||
|
||
|
||
|
||
|
||
|
||
module.exports = function (deployer, network, accounts) { | ||
|
||
// process.env.NETWORK = deployer.network; | ||
// if (network == "ropsten" || network =="ropsten-fork") { | ||
console.log(accounts); | ||
|
||
// web3.eth.sendTransaction({to:accounts[1], from:accounts[0], value:web3.utils.toWei('500','gwei'), gasPrice:web3.utils.toWei('300','gwei')}); | ||
console.log(" maxFeePerGas:"); | ||
console.log(maxFeePerGas_wei); | ||
console.log("max PriorityFeePerGas:"); | ||
console.log(maxPriorityFeePerGas_wei); | ||
|
||
console.log("block gas limit:"); | ||
var limitGas = web3.eth.getBlock("latest").gasLimit; | ||
console.log(limitGas); | ||
|
||
deployer.then(async () => { | ||
|
||
return deployer.deploy(Migrations, { | ||
// gas: '6721975', | ||
// gasPrice: wei_gas_price, | ||
maxFeePerGas: maxFeePerGas_wei, | ||
maxPriorityFeePerGas: maxPriorityFeePerGas_wei, | ||
// from: accounts[1] | ||
}); | ||
|
||
}); | ||
|
||
// } | ||
|
||
|
||
// deployer.deploy(Migrations); | ||
}; |
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
Oops, something went wrong.