-
Notifications
You must be signed in to change notification settings - Fork 160
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
[CLI] Remove defaultGasPrice and 'from' from SendTransaction #390
Conversation
@shuffledex I found that scripts commands (whitelist.js, multi_mint.js, accredit.js and changeNonAccreditedLimit.js) fails if they are run from another command. This is because they don't find web3 instance. |
gbl.constants.NETWORK doesn't exists anymore. |
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.
Only one little thing to fix
CLI/commands/dividends_manager.js
Outdated
@@ -362,7 +344,7 @@ async function createDividends(name, dividend, checkpointId) { | |||
createDividendAction = currentDividendsModule.methods.createDividendWithExclusions(maturityTime, expiryTime, excluded, web3.utils.toHex(name)); | |||
} | |||
} | |||
let receipt = await common.sendTransaction(Issuer, createDividendAction, defaultGasPrice, web3.utils.toWei(dividend)); | |||
let receipt = await common.sendTransaction(createDividendAction, {gasPrice: web3.utils.toWei(dividend)}); |
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.
This should be 'value' instead of 'gasPrice'
No description provided.