Skip to content

Instantly share code, notes, and snippets.

@maxiar
maxiar / MySampleContract.sol
Last active July 5, 2020 18:26
Sample Smart Contract & Remix Unit Test - Gitter Question: In the unit test, how to simulate multiples players register (regUserfunction) and buy multiples pools (buyPool1, buyPoll2 functions)! . And check the owner wallet balance and players balances
pragma solidity 0.5.11 - 0.6.4;
contract MySampleContract {
address public ownerWallet;
uint public currUserID = 0;
uint public pool1currUserID = 0;
uint public pool2currUserID = 0;
uint public pool1activeUserID = 0;
uint public pool2activeUserID = 0;