-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[don't pull]add deployer with enhancedStepsReserve #1050
base: master
Are you sure you want to change the base?
Conversation
6d3689f
to
9f9b604
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
the deploy script is short and elegant.
always nice to have shorter code.
is nonce handled automatically?
|
||
async function main() { | ||
const accounts = await web3.eth.getAccounts(); | ||
deployer = accounts[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plan is to send funds to this address?
if so how to return back remaining funds when done?
have private key?
consider saving it locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you set the network is ropsten in the script, accounts[0] will be the address from the privatekey in .env file
.catch(error => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line
deployer = accounts[0]; | ||
console.log(`deployer address at ${deployer}`); | ||
|
||
gasPrice = new BN(75).mul(new BN(10).pow(new BN(9))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use yargs for gas price?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we run the script with buidler, we can not read value from args
but we can read the value from environment variable
9f9b604
to
1fd44a3
Compare
1712d1d
to
9006655
Compare
9006655
to
454fb4a
Compare
454fb4a
to
292ca30
Compare
No description provided.