PullPaymentMock.sol 398 B

123456789101112131415
  1. pragma solidity ^0.5.7;
  2. import "../payment/PullPayment.sol";
  3. // mock class using PullPayment
  4. contract PullPaymentMock is PullPayment {
  5. constructor () public payable {
  6. // solhint-disable-previous-line no-empty-blocks
  7. }
  8. // test helper function to call asyncTransfer
  9. function callTransfer(address dest, uint256 amount) public {
  10. _asyncTransfer(dest, amount);
  11. }
  12. }