Skip to content

Commit

Permalink
Deleted TicTacToe testing contracts and fixed withdraw bet amount for…
Browse files Browse the repository at this point in the history
… ties
  • Loading branch information
luloxi committed Jan 9, 2024
1 parent 67404a4 commit 8b6b1c3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 428 deletions.
221 changes: 0 additions & 221 deletions packages/hardhat/contracts/GPTicTacToe.sol

This file was deleted.

4 changes: 2 additions & 2 deletions packages/hardhat/contracts/Sportsbook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ contract Sportsbook {
require(!matchChallenges[_challengeId].team2Withdrawn, "You have already withdrawn your share.");
matchChallenges[_challengeId].team2Withdrawn = true;
}
(bool successTie,) = payable(msg.sender).call{value: matchChallenges[_challengeId].bet / 2}("");
(bool successTie,) = payable(msg.sender).call{value: matchChallenges[_challengeId].bet}("");
require(successTie, "Transfer failed.");
emit PrizeWithdrawn(_challengeId, msg.sender, matchChallenges[_challengeId].bet / 2);
emit PrizeWithdrawn(_challengeId, msg.sender, matchChallenges[_challengeId].bet);
return;
}

Expand Down
163 changes: 0 additions & 163 deletions packages/hardhat/contracts/TicTacToe.sol

This file was deleted.

Loading

0 comments on commit 8b6b1c3

Please sign in to comment.