Skip to content

Cant understand the problem here!! #2949

Discussion options

You must be logged in to vote

Events in Solidity have signatures. The signature of an event is derived from its name and the types of its parameters. This signature allows events to be uniquely identified in the Ethereum Virtual Machine (EVM).

Looking at your code, the event used in Raffle.sol is IndexedMembers, whereas in the tests it is EnteredRaffle which is a different signatures just from the name.

Placing the same event name IndexedMembers makes the test pass.

Traces:
  [73092] RafflesTest::testEmitsEventOnEntrance()
    ├─ [0] VM::prank(player: [0x44E97aF4418b7a17AABD8090bEA0A471a366305C])
    │   └─ ← [Return] 
    ├─ [0] VM::recordLogs()
    │   └─ ← [Return] 
    ├─ [0] console::log("PLAYER Address: ", playe…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@EngrPips
Comment options

@TechnicallyKiller
Comment options

Answer selected by TechnicallyKiller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants