* Moved Escrows into an escrow subdirectory, improved docs.
* Fixed escrow mock.
* Fixed some more imports.
(cherry picked from commit f3df2dab3d)
17 lines
418 B
Solidity
17 lines
418 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "../payment/escrow/ConditionalEscrow.sol";
|
|
|
|
// mock class using ConditionalEscrow
|
|
contract ConditionalEscrowMock is ConditionalEscrow {
|
|
mapping(address => bool) private _allowed;
|
|
|
|
function setAllowed(address payee, bool allowed) public {
|
|
_allowed[payee] = allowed;
|
|
}
|
|
|
|
function withdrawalAllowed(address payee) public view returns (bool) {
|
|
return _allowed[payee];
|
|
}
|
|
}
|