-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from CirclesUBI/20240402-test-wrap-erc20
20240402 test wrap erc20
- Loading branch information
Showing
21 changed files
with
473 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,20 +13,20 @@ interface IProxy { | |
/// applying the code of a master contract. | ||
/// @author Stefan George - <[email protected]> | ||
/// @author Richard Meissner - <[email protected]> | ||
contract Proxy is ICirclesErrors { | ||
contract Proxy { | ||
// masterCopy always needs to be first declared variable, | ||
// to ensure that it is at the same location in the contracts | ||
// to which calls are delegated. | ||
// To reduce deployment costs this variable is internal | ||
// and needs to be retrieved via `getStorageAt` | ||
address internal masterCopy; | ||
address public masterCopy; | ||
|
||
/// @dev Constructor function sets address of master copy contract. | ||
/// @param _masterCopy Master copy address. | ||
constructor(address _masterCopy) { | ||
if (_masterCopy != address(0)) { | ||
if (_masterCopy == address(0)) { | ||
// Invalid master copy address provided | ||
revert CirclesAddressCannotBeZero(0); | ||
revert(); | ||
} | ||
masterCopy = _masterCopy; | ||
} | ||
|
@@ -42,6 +42,20 @@ contract Proxy is ICirclesErrors { | |
|
||
// -- internal functions | ||
|
||
// /// @dev Fallback function forwards all transactions and | ||
// /// returns all received return data. | ||
// function _fallback() internal { | ||
// // solium-disable-next-line security/no-inline-assembly | ||
// assembly { | ||
// let mc := sload(0) | ||
// calldatacopy(0, 0, calldatasize()) | ||
// let success := delegatecall(gas(), mc, 0, calldatasize(), 0, 0) | ||
// returndatacopy(0, 0, returndatasize()) | ||
// if eq(success, 0) { revert(0, returndatasize()) } | ||
// return(0, returndatasize()) | ||
// } | ||
// } | ||
|
||
/// @dev Fallback function forwards all transactions and | ||
/// returns all received return data. | ||
function _fallback() internal { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.