Skip to content

Instantly share code, notes, and snippets.

@letsgitcracking
Created October 25, 2022 17:53
Show Gist options
  • Save letsgitcracking/239306ea9f08d7e270f9d7e5245bdd2b to your computer and use it in GitHub Desktop.
Save letsgitcracking/239306ea9f08d7e270f9d7e5245bdd2b to your computer and use it in GitHub Desktop.
// 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