You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
pragma solidity ^0.5.0;
|
|
|
|
import "../drafts/SignatureBouncer.sol";
|
|
import "./SignerRoleMock.sol";
|
|
|
|
contract SignatureBouncerMock is SignatureBouncer, SignerRoleMock {
|
|
function checkValidSignature(address account, bytes memory signature) public view returns (bool) {
|
|
return _isValidSignature(account, signature);
|
|
}
|
|
|
|
function onlyWithValidSignature(bytes memory signature) public onlyValidSignature(signature) view {}
|
|
|
|
function checkValidSignatureAndMethod(address account, bytes memory signature) public view returns (bool) {
|
|
return _isValidSignatureAndMethod(account, signature);
|
|
}
|
|
|
|
function onlyWithValidSignatureAndMethod(bytes memory signature) public onlyValidSignatureAndMethod(signature) view {}
|
|
|
|
function checkValidSignatureAndData(address account, bytes memory, uint, bytes memory signature) public view returns (bool) {
|
|
return _isValidSignatureAndData(account, signature);
|
|
}
|
|
|
|
function onlyWithValidSignatureAndData(uint, bytes memory signature) public onlyValidSignatureAndData(signature) view {}
|
|
|
|
function theWrongMethod(bytes memory) public pure {}
|
|
|
|
function tooShortMsgData() public onlyValidSignatureAndData("") view {}
|
|
}
|
|
|