* fixed visibility warnings * solved visibility and line length warning * change a test assertion that fails due to chai dependence update * linter, constructor style and solved visibility warnings * Changed Windows line endings to Unix.
67 lines
1.0 KiB
Solidity
67 lines
1.0 KiB
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "../access/SignatureBouncer.sol";
|
|
|
|
|
|
contract SignatureBouncerMock is SignatureBouncer {
|
|
function checkValidSignature(address _address, bytes _sig)
|
|
public
|
|
view
|
|
returns (bool)
|
|
{
|
|
return isValidSignature(_address, _sig);
|
|
}
|
|
|
|
function onlyWithValidSignature(bytes _sig)
|
|
public
|
|
onlyValidSignature(_sig)
|
|
view
|
|
{
|
|
|
|
}
|
|
|
|
function checkValidSignatureAndMethod(address _address, bytes _sig)
|
|
public
|
|
view
|
|
returns (bool)
|
|
{
|
|
return isValidSignatureAndMethod(_address, _sig);
|
|
}
|
|
|
|
function onlyWithValidSignatureAndMethod(bytes _sig)
|
|
public
|
|
onlyValidSignatureAndMethod(_sig)
|
|
view
|
|
{
|
|
|
|
}
|
|
|
|
function checkValidSignatureAndData(
|
|
address _address,
|
|
bytes,
|
|
uint,
|
|
bytes _sig
|
|
)
|
|
public
|
|
view
|
|
returns (bool)
|
|
{
|
|
return isValidSignatureAndData(_address, _sig);
|
|
}
|
|
|
|
function onlyWithValidSignatureAndData(uint, bytes _sig)
|
|
public
|
|
onlyValidSignatureAndData(_sig)
|
|
view
|
|
{
|
|
|
|
}
|
|
|
|
function theWrongMethod(bytes)
|
|
public
|
|
pure
|
|
{
|
|
|
|
}
|
|
}
|