Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion casino-dapp/truffle/contracts/flipcontract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ contract FlipContract is Ownable {

// Function to simulate coin flip 50/50 randomnes
function flip(uint8 side) public payable returns(bool){
require(address(this).balance >= msg.value.mul(2), "The contract hasn't enought funds");
require(address(this).balance >= msg.value.mul(2), "The contract hasn't enough funds");
require(side == 0 || side == 1, "Incorrect side, needs to be 0 or 1");
bool win;
if(block.timestamp % 2 == side){
Expand Down