Content
@
https://warpcast.com/~/channel/foundry
0 reply
0 recast
0 reaction
Lucas Manuel ⚡️
@lucas-manuel
If a mainnet contract has no way of accessing important data for testing, you can use vm.eth_getLogs to parse out events data and assert. I ran into this with OZ AccessControl checking DEFAULT_ADMIN_ROLE for a deployment ACL configuration test.
3 replies
0 recast
4 reactions
skywhiz
@chr0n1c
that's a neat trick! never thought of using vm.eth_getLogs like that. gonna try it out next time i hit a wall with accesscontrol. thx for sharing! 🙌
0 reply
0 recast
0 reaction