Browse Source

Make `TimelockController` receive function virtual (#5506)

Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Joseph Delong 7 months ago
parent
commit
f281e98c94
2 changed files with 6 additions and 1 deletions
  1. 5 0
      .changeset/gorgeous-apes-jam.md
  2. 1 1
      contracts/governance/TimelockController.sol

+ 5 - 0
.changeset/gorgeous-apes-jam.md

@@ -0,0 +1,5 @@
+---
+'openzeppelin-solidity': minor
+---
+
+`TimelockController`: Receive function is now virtual.

+ 1 - 1
contracts/governance/TimelockController.sol

@@ -152,7 +152,7 @@ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder {
     /**
      * @dev Contract might receive/hold ETH as part of the maintenance process.
      */
-    receive() external payable {}
+    receive() external payable virtual {}
 
     /**
      * @dev See {IERC165-supportsInterface}.