trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.62k stars 678 forks source link

Remove webpack hack to prevent loading ethers #3899

Open MicaiahReid opened 1 year ago

MicaiahReid commented 1 year ago

I've added a TODO to remove this line which prevents importing ethers when webpacking Ganache.

Without this, we get the error ReferenceError: atob is not defined when running Ganache after webacking. The new ethereumjs version import ethers, which uses atob, which is not defined in node.

It looks like this issue will be resolved in v6 of ethers, so this can be removed at that point.