Edit hashforether.sol

pull/1720/head
Nikhil Parasaram 2 years ago committed by GitHub
parent 921f395343
commit cd9d0a3e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      solidity_examples/hashforether.sol

@ -3,9 +3,9 @@ pragma solidity 0.5.0;
contract HashForEther {
function withdrawWinnings() public {
function withdrawWinnings() public payable {
// Winner if the last 8 hex characters of the address are 0.
require(uint32(msg.sender) == 0);
if (uint32(msg.sender) == 0)
_sendWinnings();
}

Loading…
Cancel
Save