PullPaymentMockUpgradeable.sol 905 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../security/PullPaymentUpgradeable.sol";
  4. import "../proxy/utils/Initializable.sol";
  5. // mock class using PullPayment
  6. contract PullPaymentMockUpgradeable is Initializable, PullPaymentUpgradeable {
  7. function __PullPaymentMock_init() internal onlyInitializing {
  8. __PullPayment_init_unchained();
  9. }
  10. function __PullPaymentMock_init_unchained() internal onlyInitializing {}
  11. // test helper function to call asyncTransfer
  12. function callTransfer(address dest, uint256 amount) public {
  13. _asyncTransfer(dest, amount);
  14. }
  15. /**
  16. * @dev This empty reserved space is put in place to allow future versions to add new
  17. * variables without shifting down storage in the inheritance chain.
  18. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
  19. */
  20. uint256[50] private __gap;
  21. }