Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Jan 14, 2025
1 parent 6a4fadd commit f8d6869
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions contracts/src/libraries/ERC1967Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,28 @@

pragma solidity ^0.8.20;

import {Proxy} from "../../lib/openzeppelin-contracts/contracts/proxy/Proxy.sol";
import {ERC1967Utils} from "../../lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol";
import { Proxy } from "../../lib/openzeppelin-contracts/contracts/proxy/Proxy.sol";
import { ERC1967Utils } from
"../../lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol";

/**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated
* to an
* implementation address that can be changed. This address is stored in storage in the location
* specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage
* layout of the
* implementation behind the proxy.
*/
contract ERC1967Proxy is Proxy {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.
* @dev Initializes the upgradeable proxy with an initial implementation specified by
* `implementation`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an
* encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.
* If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will
* typically be an
* encoded function call, and allows initializing the storage of the proxy like a Solidity
* constructor.
*
* Requirements:
*
Expand All @@ -30,7 +37,8 @@ contract ERC1967Proxy is Proxy {
/**
* @dev Returns the current implementation address.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using
* TIP: To get this value clients can read directly from the storage slot shown below (specified
* by EIP1967) using
* the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
*/
Expand Down

0 comments on commit f8d6869

Please sign in to comment.