Created
October 25, 2022 17:53
-
-
Save letsgitcracking/239306ea9f08d7e270f9d7e5245bdd2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.8.17; | |
interface ITreasureChest { | |
function GetTreasure(address) external; | |
} | |
contract ClaimTreasure { | |
function callTreasureContract(address _address) external { | |
ITreasureChest(_address).GetTreasure(msg.sender); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment