Skip to content

Commit

Permalink
ON-787: Update hashOffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Apr 9, 2024
1 parent 386e115 commit b7d51b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions contracts/libraries/LibOriumSftMarketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ library LibOriumSftMarketplace {
* @param _offer The rental offer struct to be hashed.
*/
function hashRentalOfferLegacy(RentalOffer memory _offer) external pure returns (bytes32) {
return
keccak256(
_offer.minDuration == 0
? abi.encode(
return
_offer.minDuration == 0
? keccak256(
abi.encode(
_offer.lender,
_offer.borrower,
_offer.tokenAddress,
Expand All @@ -82,8 +82,8 @@ library LibOriumSftMarketplace {
_offer.roles,
_offer.rolesData
)
: abi.encode(_offer)
);
)
: hashRentalOffer(_offer);
}

/**
Expand All @@ -92,7 +92,7 @@ library LibOriumSftMarketplace {
* is only used for writing the hash in the storage.
* @param _offer The rental offer struct to be hashed.
*/
function hashRentalOffer(RentalOffer memory _offer) external pure returns (bytes32) {
function hashRentalOffer(RentalOffer memory _offer) public pure returns (bytes32) {
return keccak256(abi.encode(_offer));
}

Expand Down

0 comments on commit b7d51b5

Please sign in to comment.