Files
openzeppelin-contracts/contracts
Hadrien Croubois af7ec04b78 Improve security of the onlyGovernance modifier (#3147)
* add a protection mechanism to prevent relaying transaction that are not
part of an execute operation

* more accurate relay authorization

* force reset the relay authorizations after executions

* refactor of the onlyGovernor modifier

* only whitelist when executor is not governor itself

* fix lint

* add private function for call permission management

* use deque

* fix lint

* remove unecessary dependency

* remove unecessary dependency

* comment rephrasing

* Update contracts/governance/Governor.sol

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>

* cache keccak256(_msgData())

* use Context

* lint

* conditionnal clear

* add test to cover queue.clear()

* lint

* write more extended docs for onlyGovernance

* add changelog entry

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
2022-02-18 21:03:03 +01:00
..
2022-02-09 18:16:53 -03:00
2021-12-14 13:14:39 -03:00
2022-02-09 18:16:53 -03:00
2022-02-09 18:16:53 -03:00
2022-02-09 18:16:53 -03:00
2021-12-14 13:14:39 -03:00
2022-02-09 18:16:53 -03:00