#msgvalue
Take a look at the money flow.
Since the function deals with msg.value it needs to be defined as payable. Without this it will be reverted.
by RareSkills
by Jeiwan
by RareSkills
by RareSkills
by Andreas M. Antonopoulos, Gavin Wood
by Micah Dameron
Compare execution layer differences between chains
Dive deep into the storage of any contract