revert the second require

This commit is contained in:
SamKry
2025-11-28 15:55:40 +01:00
parent 27d6ae3e17
commit cccd3b093e

View File

@@ -57,7 +57,7 @@ contract Game {
require(msg.value >= BET_MIN, "Minimum bet not met"); require(msg.value >= BET_MIN, "Minimum bet not met");
require( require(
games[gameId].initialBet == 0 || games[gameId].initialBet == 0 ||
msg.value >= games[gameId].initialBet, msg.value == games[gameId].initialBet,
"Bet value must match initial bet" "Bet value must match initial bet"
); );
_; _;