Created
April 27, 2023 19:02
-
-
Save PedroCailleret/b8e3050ded27b35c5fc4a9b7050192ce 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: AGPL-3.0-only | |
| pragma solidity 0.8.19; | |
| contract Hello { | |
| uint constant HELLO_WORLD = | |
| 269407141610545570464702413956129; | |
| function getString() public pure returns(string memory) | |
| { | |
| assembly { | |
| mstore(0x00, 0x20) | |
| mstore(0x2d , HELLO_WORLD) | |
| return(0x00, 0x60) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment