Initial commit with 🏗️ create-eth @ 2.0.4
This commit is contained in:
34
packages/hardhat/contracts/RiggedRoll.sol
Normal file
34
packages/hardhat/contracts/RiggedRoll.sol
Normal file
@@ -0,0 +1,34 @@
|
||||
pragma solidity >=0.8.0 <0.9.0; //Do not change the solidity version as it negatively impacts submission grading
|
||||
//SPDX-License-Identifier: MIT
|
||||
|
||||
import "hardhat/console.sol";
|
||||
import "./DiceGame.sol";
|
||||
import "@openzeppelin/contracts/access/Ownable.sol";
|
||||
|
||||
contract RiggedRoll is Ownable {
|
||||
/////////////////
|
||||
/// Errors //////
|
||||
/////////////////
|
||||
|
||||
// Errors go here...
|
||||
|
||||
//////////////////////
|
||||
/// State Variables //
|
||||
//////////////////////
|
||||
|
||||
DiceGame public diceGame;
|
||||
|
||||
///////////////////
|
||||
/// Constructor ///
|
||||
///////////////////
|
||||
|
||||
constructor(address payable diceGameAddress) Ownable(msg.sender) {
|
||||
diceGame = DiceGame(diceGameAddress);
|
||||
}
|
||||
|
||||
///////////////////
|
||||
/// Functions /////
|
||||
///////////////////
|
||||
|
||||
// Functions go here...
|
||||
}
|
||||
Reference in New Issue
Block a user