Skip to content

Commit

Permalink
Make TimelockController receive function virtual (OpenZeppelin#5506)
Browse files Browse the repository at this point in the history
Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
  • Loading branch information
3 people authored Feb 14, 2025
1 parent fa8bed6 commit f281e98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-apes-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openzeppelin-solidity': minor
---

`TimelockController`: Receive function is now virtual.
2 changes: 1 addition & 1 deletion contracts/governance/TimelockController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down

0 comments on commit f281e98

Please sign in to comment.