chapter17-code-2
Thu Mar 30 2023 11:26:46 GMT+0000 (Coordinated Universal Time)
Saved by
@RareSkills
contract ExampleContract {
function getTopLeaderboardScore() public pure returns (address, uint256) {
return (0xd8da6bf26964af9d7eed9e03e53415d37aa96045, 100);
}
function highestScoreIsOver9000() public pure returns (bool) {
(address leader, uint256 score) = getTopLeaderboardScore();
if (score > 9000) {
return true;
}
return false;
}
}
content_copyCOPY
Comments