Created
December 15, 2022 05:48
-
-
Save KolevDarko/32a7e0e9fd03afd6a3ecfc6ac04a6d82 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
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