medium10 pts · first answer countssolidityeth-transferssecurity
Relying on the contract balance
A game contract requires address(this).balance == totalDeposits, and has no receive function. Why can this check be broken?
Discussion 0
Join free to post in the discussion.
Related questions
- storage, memory, calldataBlockchain Developer
- Why emit eventsBlockchain Developer
- What msg.sender isBlockchain Developer
- Wei and etherBlockchain Developer
- view vs pureBlockchain Developer
- Sending ETH to a functionBlockchain Developer
- receive vs fallbackBlockchain Developer
- Reading a missing mapping keyBlockchain Developer