Skip to content

Instantly share code, notes, and snippets.

@Hebilicious
Last active March 4, 2021 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hebilicious/f0a3737f90127e57de54ed77888c2011 to your computer and use it in GitHub Desktop.
Save Hebilicious/f0a3737f90127e57de54ed77888c2011 to your computer and use it in GitHub Desktop.
function _setAdmin(address newAdmin) internal {
bytes32 slot = ADMIN_SL0T;
assembly {
sstore(slot, newAdmin)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment