-
Notifications
You must be signed in to change notification settings - Fork 39
Allow tweaking underlying ganache's configuration #31
Comments
We should also support "unlocked accounts", which allows using accounts without knowing their private key. What I've heard is that they're useful when forking. |
Thanks Fran, added to the body of the issue! |
Hey there, just curious what kind of timeline is expected for this issue? Really looking forward to using the OpenZeppelin Test Environment in my project, but am waiting for a few of these settings to be supported. |
Hey @mds1! Unfortunately this is not scheduled for the upcoming weeks, so I cannot give a precise answer. We would certainly welcome a PR with the feature if you are interested, though! |
Got it, thanks. Probably won't get to it for a few weeks, but would be willing to take a shot at the PR then! |
Request on the community forum for support testing on a forked ganache: https://forum.openzeppelin.com/t/testing-on-ganache-fork/2434 Also requested on Telegram: https://t.me/zeppelinos/10819 |
@knarz has submitted #55 enabling support for More specifically, I am proposing adding a field to our configuration file like: module.exports = {
accounts: {
amount: 10, // Number of unlocked accounts
ether: 100, // Initial balance of unlocked accounts (in ether)
},
node: {
allowUnlimitedContractSize: true,
},
}; where the object under There are some options we would not support, like custom account configuration. We would have to detect those and possibly throw an error or simply ignore them. |
Agree with @frangio on the grouping. Accounts are also a part of Ganache/Node grouping because eventually Ethereum client is holding them. |
I disagree with putting accounts inside the |
We should allow tweaking ganache's configuration when running the tests. We currently only support block gas limit and accounts initial ETH, but we should also cover:
We can either do this by allowing the user to spin up their own ganache and attach to it (instead of using the one provided by test-env) or by adding more options to the configuration.
The text was updated successfully, but these errors were encountered: