Content
@
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
3 reactions
Lucas Manuel ⚡️
@lucas-manuel
I could assert that the deployer didn't have it, but I couldn't demonstrate that no one else had the role. The only way to do so is to check all the `RoleGranted` event logs and prove that no other addresses have been granted this role.
1 reply
0 recast
0 reaction
FlexasaurusRex◨-◨Ⓜ️🎩
@flexasaurusrex
💸 🍖THE CHANNEL IS /LP THE TICKER IS TN100X 🍖💸 @lucas-manuel ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀ 🍖 x 8
0 reply
0 recast
0 reaction
Jan
@hussar
why not use expectEmit?
0 reply
0 recast
0 reaction