File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ contract Diamond {
2121 LibDiamond._diamondCut (_diamondCut, _args.init, _args.initData);
2222 }
2323
24+ /// @notice Receive function to accept plain Ether transfers
25+ /// @dev Allows contract to receive Ether without data
26+ receive () external payable {}
27+
2428 /// @notice Fallback function that delegates calls to the appropriate facet based on function selector
2529 /// @dev Reads the facet address from diamond storage and performs a delegatecall; reverts if selector is not found
2630 fallback () external payable {
@@ -45,8 +49,4 @@ contract Diamond {
4549 default { return (0 , returndatasize ()) }
4650 }
4751 }
48-
49- /// @notice Receive function to accept plain Ether transfers
50- /// @dev Allows contract to receive Ether without data
51- receive () external payable {}
5252}
You can’t perform that action at this time.
0 commit comments