Skip to content

Instantly share code, notes, and snippets.

@PedroCailleret
Created April 27, 2023 19:02
Show Gist options
  • Select an option

  • Save PedroCailleret/b8e3050ded27b35c5fc4a9b7050192ce to your computer and use it in GitHub Desktop.

Select an option

Save PedroCailleret/b8e3050ded27b35c5fc4a9b7050192ce to your computer and use it in GitHub Desktop.
// 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