diff --git a/projects/borrow-against-salary/contracts/EmploymentLoan.sol b/projects/borrow-against-salary/contracts/EmploymentLoan.sol index e2fd4c2..04ad73a 100644 --- a/projects/borrow-against-salary/contracts/EmploymentLoan.sol +++ b/projects/borrow-against-salary/contracts/EmploymentLoan.sol @@ -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"); diff --git a/projects/tradeable-cashflow/contracts/RedirectAll.sol b/projects/tradeable-cashflow/contracts/RedirectAll.sol index ee4f2f3..dec3e5a 100644 --- a/projects/tradeable-cashflow/contracts/RedirectAll.sol +++ b/projects/tradeable-cashflow/contracts/RedirectAll.sol @@ -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;