forked from matter-labs/zksync
-
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.
- Loading branch information
1 parent
380ecc3
commit 3fd78fc
Showing
3 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
contracts/contracts/dev-contracts/DummyERC20BytesTransferReturnValue.sol
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
|
||
pragma solidity ^0.7.0; | ||
|
||
contract DummyERC20BytesTransferReturnValue { | ||
bytes returnValue; | ||
|
||
constructor(bytes memory _returnValue) { | ||
returnValue = _returnValue; | ||
} | ||
|
||
function transfer(address _recipient, uint256 _amount) external view returns (bytes memory) { | ||
// Hack to prevent Solidity warnings | ||
_recipient; | ||
_amount; | ||
|
||
return returnValue; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
contracts/contracts/dev-contracts/DummyERC20NoTransferReturnValue.sol
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
|
||
pragma solidity ^0.7.0; | ||
|
||
contract DummyERC20NoTransferReturnValue { | ||
function transfer(address recipient, uint256 amount) external {} | ||
} |
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