@0x/contracts-exchange
: Update IWallet
for new legacy wallet spec.
This commit is contained in:
parent
ca33090793
commit
a8ddbe4127
@ -24,15 +24,15 @@ import "@0x/contracts-exchange-libs/contracts/src/LibOrder.sol";
|
|||||||
|
|
||||||
contract IWallet {
|
contract IWallet {
|
||||||
|
|
||||||
/// @dev Verifies that a signature is valid.
|
/// @dev Validates a hash with the `Wallet` signature type.
|
||||||
/// @param hash Message hash that is signed.
|
/// @param hash Message hash that is signed.
|
||||||
/// @param signature Proof of signing.
|
/// @param signature Proof of signing.
|
||||||
/// @return Validity of order signature.
|
/// @return `bytes4(0xb0671381)` if the signature check succeeds.
|
||||||
function isValidSignature(
|
function isValidSignature(
|
||||||
bytes32 hash,
|
bytes32 hash,
|
||||||
bytes calldata signature
|
bytes calldata signature
|
||||||
)
|
)
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
returns (bool isValid);
|
returns (bytes4 magicValue);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user