ganache
ganache copied to clipboard
feat: get logs from a fork network directly
This looks like it's not quiet ready for review as you've introduced some new TODO
s
Ok, I will remove the TODOs, they are related to some bugs in the block-manager.ts and can be fixed in other PRs.
Ok, I will remove the TODOs, they are related to some bugs in the block-manager.ts and can be fixed in other PRs.
What are the bugs?
getNumberFromHash is called from api.eth_getBlockTransactionCountByHash but it doesn't support forks, so I used getByHash. BlockManager.earliest also doesn't support forks or at least doesn't point to the earliest block of the forked network. I tried to minimize the changes outside blocklog-manager.ts