-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Update to ganache-cli v6.1.0 and truffle v4.1.0 #800
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
Conversation
shrugs
left a comment
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.
just some nitpicks 👍
|
|
||
| - Which version of OpenZeppelin are you using? | ||
| - What network are you deploying to? testrpc? Ganache? Ropsten? | ||
| - What network are you deploying to? ganache-cli? Ganache? Ropsten? |
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.
Can we change this to just say What network are you deploying to? Ganache? Rinkeby?
|
|
||
| before(async function () { | ||
| // Advance to the next block to correctly read time in the solidity "now" function interpreted by testrpc | ||
| // Advance to the next block to correctly read time in the solidity "now" function interpreted by ganache |
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.
So we've obviously copy-pasted these test files over and over again 😅 can we just remove these duplicate comments in all of these crowdsale tests? I could also see an argument for the extra verbosity being worth it.
| gasPrice: 0x01, | ||
| }, | ||
| testrpc: { | ||
| "ganache-cli": { |
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.
let's change this to just ganache?
| host: 'localhost', | ||
| port: 8545, | ||
| network_id: '*', // eslint-disable-line camelcase | ||
| network_id: '*' // eslint-disable-line camelcase |
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.
was this enforced by our eslint config or your editor? I think our eslint config enforces the trailing multiline comma
|
Hi @shrugs, just leaving a note here re: Happy to open a PR if that's helpful but there are no associated changes apart from the version number. |
|
Thanks for the note, @cgewecke! sounds like solidity-coverage should be fine as-is, then. |
Updates the test suite to use
ganache-cliv6.1.0 instead ofethereumjs-testrpcv6.0.1, and to usetrufflev4.1.0 instead oftrufflev4.0.1.All tests pass locally when combined with #799.
Note that this test does not update anything to do with
testrpc-scas I don't control releases of that tool, however @cgewecke is aware of this change.Moved
truffle-config.jstotruffle.jsas this is the filename expected for the main truffle configuration now. Not having atruffle.jscaused me to run into ConsenSys-archive/truffle#838.