This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 678
Make sure balances of accounts when forking are correct #128
Labels
Comments
mikeseese
added a commit
that referenced
this issue
Jun 29, 2018
also update the test to make sure the balance isn't too large (which it was in this case) for #128
mikeseese
changed the title
Fork Accounts
Make sure balances of accounts when forking are correct
Jun 29, 2018
I updated this issue after talking to @cgewecke some more; it seems that the issue was presented because of the balances were not necessarily matching up in his This prompted me to look into the issue and found that the fallback This issue is not for that bug |
Thanks @seesemichaelj! Great. |
This was referenced Oct 13, 2024
This was referenced Oct 20, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For a forked chain to reflect the state of its parent, it needs to map the parent's unlocked accounts onto itself. For example, you would expect
This is not currently possible unless you pass ganache a list of private keys (I think). One hope of the Truffle V5 migrations work is to make
dry-run
a meaningful simulation of the deployment sequence and balance checks are necessarily part of that.It's possible we could manage this at truffle where the forking happens by passing in a list of accounts to unlock, setting a high default ether balance, and then running a set of txs that seed the unlocked accounts with the appropriate balances.
Questions for @seesemichaelj and @benjamincburns:
The text was updated successfully, but these errors were encountered: