diff --git a/crypto_clash_contract/contracts/Game.sol b/crypto_clash_contract/contracts/Game.sol index 7e74e04..28143ed 100644 --- a/crypto_clash_contract/contracts/Game.sol +++ b/crypto_clash_contract/contracts/Game.sol @@ -54,10 +54,10 @@ contract Game { // ------------------------- Registration ------------------------- // modifier validBet(uint gameId) { - require(msg.value == BET_MIN, "Minimum bet not met"); + require(msg.value >= BET_MIN, "Minimum bet not met"); require( games[gameId].initialBet == 0 || - msg.value == games[gameId].initialBet, + msg.value >= games[gameId].initialBet, "Bet value must match initial bet" ); _;