@0x/contracts-utils: Add LibEIP1271.sol

This commit is contained in:
Lawrence Forman 2019-06-25 12:07:51 -04:00 committed by Amir Bandeali
parent 2ff3735adc
commit ddbe2acbf5
3 changed files with 31 additions and 0 deletions

View File

@ -17,6 +17,10 @@
{
"note": "Break out types/interaces from `MRichErrors` into `MRichErrorTypes`.",
"pr": 1790
},
{
"note": "Add LibEIP1271.sol",
"pr": 1885
}
]
},

View File

@ -26,6 +26,7 @@
"contracts": [
"src/LibAddress.sol",
"src/LibBytes.sol",
"src/LibEIP1271.sol",
"src/LibEIP712.sol",
"src/Ownable.sol",
"src/ReentrancyGuard.sol",

View File

@ -0,0 +1,26 @@
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pragma solidity ^0.5.9;
contract LibEIP1271 {
// Magic bytes returned by EIP1271 wallets on success.
bytes4 constant public EIP1271_MAGIC_VALUE = 0x20c13b0b;
}