Solution: Part 3

Final derived contract

Next, we'll define our final contract, which will inherit from TreasureHuntVRF.sol (and thus implicitly from TreasureHuntNoVRF.sol). Here, we'll implement the constructor, various functions to handle gameplay and payments, as well as OpenZeppelin design patterns.

Get hands-on with 1200+ tech skills courses.