Replies: 3 comments 9 replies
-
This seems like a bug to me! Do you have a repository available to reproduce this? |
Beta Was this translation helpful? Give feedback.
-
Do you need to run |
Beta Was this translation helpful? Give feedback.
-
@MicaiahReid / @davidmurdoch , And below is the migration script that deploys the eggToken contract (5_eggToken_migration.js). You can see that eggToken contract is deployed by accounts[0] . And in later migration script ( 8_marketplace_register_tokens.js) I confirm that the eggToken.owner is the original address of accounts[0], but the accounts[0] address has now changed!? 5_eggToken_migration.js
|
Beta Was this translation helpful? Give feedback.
-
Hi @davidmurdoch,
Recently when runing ganache to fork mainnet my project's migration script fails. However it still works as expected using ganache without -f option. With the -f option it seems to be changing accounts[0] part-way through the complete migration!?? Shall I raise this as an issue?
My migration script contains the following:
When I start ganache with
-f
option, ie:$ ganache -h 127.0.0.1 -p 8545 -m "quick brown fox jumped over the lazy dog" -f --miner.timestampIncrement 13
Resulting in ganache startup output of:
$ truffle migrate --reset
I get the following output (from my failing script) . NOTE: accounts[0] has changed adddress (from before)!!!
Note: All prior migration scripts execute successfully (incl. deployment of Eggtoken and LoanBook contracts).
Here's the output from the script that deploys the eggToken (when using ganache with -f option):
Now when I start again, but with ganache without the -f option, ie.
$ ganache -h 127.0.0.1 -p 8545 -m "quick brown fox jumped over the lazy dog" --miner.timestampIncrement 13
Resulting in ganache startup out of:
$ truffle migrate --reset
My deployment scripts all run fine (without erroe), with output (of previously failing script) of:
I'm running on a MacBookPro (2021).
Beta Was this translation helpful? Give feedback.
All reactions