Skip to content

Commit

Permalink
ON-812: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Apr 19, 2024
1 parent d8a34a1 commit e195d20
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions contracts/NftRentalMarketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,17 @@ contract NftRentalMarketplace is Initializable, OwnableUpgradeable, PausableUpgr
bytes32 _offerHash = LibNftRentalMarketplace.hashRentalOffer(_offer);
Rental storage _rental = rentals[_offerHash];

LibNftRentalMarketplace.validateEndRentalParams(isCreated[_offerHash], _rental.borrower, _rental.expirationDate);
LibNftRentalMarketplace.revokeRoles(oriumMarketplaceRoyalties, _offer.tokenAddress, _offer.tokenId, _offer.roles);
LibNftRentalMarketplace.validateEndRentalParams(
isCreated[_offerHash],
_rental.borrower,
_rental.expirationDate
);
LibNftRentalMarketplace.revokeRoles(
oriumMarketplaceRoyalties,
_offer.tokenAddress,
_offer.tokenId,
_offer.roles
);

_rental.expirationDate = uint64(block.timestamp);
emit RentalEnded(_offer.lender, _offer.nonce);
Expand Down

0 comments on commit e195d20

Please sign in to comment.