Skip to content

Instantly share code, notes, and snippets.

@Mayur1496
Created October 1, 2020 16:00
Show Gist options
  • Save Mayur1496/55b93b5c9518bfcd73a2ce90e7cf60bb to your computer and use it in GitHub Desktop.
Save Mayur1496/55b93b5c9518bfcd73a2ce90e7cf60bb to your computer and use it in GitHub Desktop.
pragma solidity >=0.4.11 <0.6.0;
contract C {
function f(uint x) public view returns (uint r) {
assembly {
r := extcodehash(x)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment