Foundry fundamentals - Section 4, Video 28: Testing Events #3367
MrRobWeb
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
|
Hello @MrRobWeb, This seems logical to me. Did you test it, and did everything work fine? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have a question regarding events. In the tutorial Patrick mentioned that you need to create events twice. Once for the Raffle.sol contract and once for the RaffleTest.t.sol contract.
Can we not just create an interface and use that interface for both contracts, for instance:
Using this approach you only need to define events once.
Does this approach has any tradeoffs?
Raffle.sol
RaffleTest.t.sol
Beta Was this translation helpful? Give feedback.
All reactions