Created
February 12, 2019 23:23
-
-
Save gdebenito/2d747d6177ee43813b3919667f4cb462 to your computer and use it in GitHub Desktop.
This file contains 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
pragma solidity >=0.4.22 <0.6.0; | |
contract AssemblyAddr { | |
function foo() public returns (uint256){ | |
assembly{ | |
mstore(0x0,caller) | |
return(0x0,32) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment