Skip to content

Commit f281e98

Browse files
dangerousfoodarr00Amxx
authored
Make TimelockController receive function virtual (OpenZeppelin#5506)
Co-authored-by: Arr00 <[email protected]> Co-authored-by: Hadrien Croubois <[email protected]>
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

+5
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

+1-1
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)