ganache
ganache copied to clipboard
fix: use zero address when unable to calculate 'from'
I'm trying to fork a evm-compatible chain with ganache-ui, but my chain contains custom signatures and when block that is used as a fork point has transaction with custom signature ganache application crashes on Transactions screen. The problem comes from Transaction.from getter function which throws if signature is invalid and causes ui to crash. This PR simply uses zero address as 'from' field instead of throwing an exception.
Ganache-UI hasn't been updated to use the latest version of Ganache. Your fix here would certainly make UI stop crashing... but would ultimately just make the implementation completely incorrect.
Is there another way to handle invalid signatures without crashing?
Does Ganache v7 (npm install ganache --global and then run ganache --fork.url <YOUR URL HERE>) return errors when you try to use it?
What chain are you using?
@davidmurdoch cli Ganache works fine. So my only option is to use command line Ganache instead of UI? I'm using Velas chain
Ganache UI hasn't been updated yet.
@davidmurdoch will it be updated any time soon?