Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atomically set ERC-1967 and enforce implementation invariants #39

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
164 changes: 0 additions & 164 deletions script/Initialize.s.sol

This file was deleted.

195 changes: 0 additions & 195 deletions script/UpgradeEOA.s.sol

This file was deleted.

19 changes: 19 additions & 0 deletions src/DefaultReceiver.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import {Receiver} from "solady/accounts/Receiver.sol";

/// @title DefaultReceiver
///
/// @notice A concrete implementation of Solady's Receiver contract
///
/// @dev Handles ETH, ERC721, and ERC1155 token transfers
contract DefaultReceiver is Receiver {
// We don't need to override any functions since the base contract
// already implements all the necessary functionality:
// - receive() for ETH
// - fallback() with receiverFallback modifier for ERC721/ERC1155
// - _useReceiverFallbackBody() returns true
// - _beforeReceiverFallbackBody() empty implementation
// - _afterReceiverFallbackBody() empty implementation
}
Loading