Skip to content

Commit

Permalink
fix build attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee committed Oct 20, 2023
1 parent 71f96c5 commit 6b581cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract EmploymentLoan is SuperAppBaseFlow {
) private returns (bytes memory newCtx) {
newCtx = ctx;
//get the current sender of the flow
address sender = host.decodeCtx(ctx).msgSender;
address sender = HOST.decodeCtx(ctx).msgSender;
//this will revert and no outflow or inflow will be created if the sender of the flow is not
// the emploer
require(sender == employer, "sender of flow must be the employer");
Expand Down
2 changes: 1 addition & 1 deletion projects/tradeable-cashflow/contracts/RedirectAll.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contract RedirectAll is SuperAppBaseFlow {
function _changeReceiver(address newReceiver) internal {
if (newReceiver == address(0)) revert InvalidReceiver();

if (host.isApp(ISuperApp(newReceiver))) revert ReceiverIsSuperApp();
if (HOST.isApp(ISuperApp(newReceiver))) revert ReceiverIsSuperApp();

if (newReceiver == _receiver) return;

Expand Down

0 comments on commit 6b581cb

Please sign in to comment.