Skip to content

Commit f281e98

Browse files
dangerousfoodarr00Amxx
authored
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>
1 parent fa8bed6 commit f281e98

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/gorgeous-apes-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': minor
3+
---
4+
5+
`TimelockController`: Receive function is now virtual.

contracts/governance/TimelockController.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder {
152152
/**
153153
* @dev Contract might receive/hold ETH as part of the maintenance process.
154154
*/
155-
receive() external payable {}
155+
receive() external payable virtual {}
156156

157157
/**
158158
* @dev See {IERC165-supportsInterface}.

0 commit comments

Comments
 (0)