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

PRBTest.sol breaks Vm.Log ? #43

Closed
nnnnicholas opened this issue Jan 8, 2024 · 1 comment
Closed

PRBTest.sol breaks Vm.Log ? #43

nnnnicholas opened this issue Jan 8, 2024 · 1 comment

Comments

@nnnnicholas
Copy link

Hi Paul,

I'm getting this odd error when trying to use vm.getRecordedLogs() in a test in a project using foundry-template.

Type struct VmSafe.Log[] memory is not implicitly convertible to expected type struct VmSafe.Log[] memory.

image

It's the first time I use this cheatcode, but someone in the Foundry support tg suggests that PRBTest might be causing the problem. Have you ever encountered this odd error?

Here is the tg mention of PRBTest possibly causing the problem: https://t.me/foundry_support/43751

image

And here are my imports, in case relevant

image

Thanks for any suggestions.

@PaulRBerg
Copy link
Owner

PaulRBerg commented Jan 8, 2024

Sorry for this. The problem is PRBTest:

PaulRBerg/prb-test#38

The only workaround is to switch to Forge Std and DSTest, or make a PR to update the Vm in PRBTest. Or alternatively, advocate for an independent forge-vm repository.

@PaulRBerg PaulRBerg closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2024
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

No branches or pull requests

2 participants