Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: coverage issues with vm #261

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

pscott
Copy link
Collaborator

@pscott pscott commented Mar 17, 2025

Fixes issues with running forge coverage.

Basically, had to use vm.getBlockNumber() and vm.getBlockTimestamp(). To do that, we had to update forge-std.
We also have to use --ir-minimum on coverage because we are getting some errors with stack too deep.
And we need to --no-match-coverage because of some issue with some forked tests. This test will still run, we just won't get any coverage on it (but it's a script to it doesn't matter).

@pscott pscott force-pushed the fix_coverage_issues_with_vm branch from bf90714 to 6515bef Compare March 18, 2025 14:31
@pscott
Copy link
Collaborator Author

pscott commented Mar 18, 2025

@bonustrack can we merge this pls? Will fix CI for other PRs

fix: coverage issues with block.number and block.timestamp

fix: reset forge-std to master

ci: skip testFork

ci: no-match-test testFork

lint: properly space --ir-minimum in yarn coverage

fix: properly spell match
@pscott pscott force-pushed the fix_coverage_issues_with_vm branch from 48f2745 to 1003e3f Compare March 18, 2025 14:36
@pscott pscott requested a review from bonustrack March 19, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant