mirror of
https://github.com/averel10/crypto_clash.git
synced 2026-03-12 19:08:11 +01:00
fix valid bet to allow larger bets
This commit is contained in:
@@ -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"
|
||||||
);
|
);
|
||||||
_;
|
_;
|
||||||
|
|||||||
Reference in New Issue
Block a user