fix valid bet to allow larger bets

This commit is contained in:
SamKry
2025-11-28 15:50:01 +01:00
parent fded6167fc
commit 62706efa0f

View File

@@ -54,10 +54,10 @@ contract Game {
// ------------------------- Registration ------------------------- // // ------------------------- Registration ------------------------- //
modifier validBet(uint gameId) { modifier validBet(uint gameId) {
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"
); );
_; _;