Skip to content

Instantly share code, notes, and snippets.

@Dan-Nolan
Created November 8, 2022 21:55
Show Gist options
  • Save Dan-Nolan/a3d8779a949d82bc5e0481d357e0d51a to your computer and use it in GitHub Desktop.
Save Dan-Nolan/a3d8779a949d82bc5e0481d357e0d51a to your computer and use it in GitHub Desktop.
First Test
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
contract HelloWorld {
bool public success;
function doTheMath(uint _x, uint _y) external {
require(_x + _y == 42);
require(_x > 0 && _y > 0);
success = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment