Skip to content

Instantly share code, notes, and snippets.

@KolevDarko
Created December 15, 2022 05:48
Show Gist options
  • Save KolevDarko/32a7e0e9fd03afd6a3ecfc6ac04a6d82 to your computer and use it in GitHub Desktop.
Save KolevDarko/32a7e0e9fd03afd6a3ecfc6ac04a6d82 to your computer and use it in GitHub Desktop.
function _beforeExecute(
uint256, /* proposalId */
address[] memory targets,
uint256[] memory, /* values */
bytes[] memory calldatas,
bytes32 /*descriptionHash*/
) internal virtual {
if (_executor() != address(this)) {
for (uint256 i = 0; i < targets.length; ++i) {
if (targets[i] == address(this)) {
_governanceCall.pushBack(keccak256(calldatas[i]));
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment