Skip to content

Commit

Permalink
ON-513: Remove expiration date from Direct Rental Started event
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Nov 6, 2023
1 parent 64eb2de commit fdae168
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions contracts/OriumMarketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
* @param tokenId The tokenId of the rented NFT
* @param lender The address of the lender
* @param borrower The address of the borrower
* @param expirationDate The expiration date of the rental
* @param duration The duration of the rental
* @param roles The array of roles to be assigned to the borrower
* @param rolesData The array of data for each role
Expand All @@ -203,7 +202,6 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
uint256 indexed tokenId,
address lender,
address borrower,
uint64 expirationDate,
uint256 duration,
bytes32[] roles,
bytes[] rolesData
Expand Down Expand Up @@ -585,7 +583,6 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
_directRental.tokenId,
_directRental.lender,
_directRental.borrower,
_expirationDate,
_directRental.duration,
_directRental.roles,
_directRental.rolesData
Expand Down
3 changes: 0 additions & 3 deletions test/OriumMarketplace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,6 @@ describe('OriumMarketplace', () => {
})
describe('Create Direct Rental', async () => {
it("Should create a direct rental if caller is the token's owner", async () => {
const blockTimestamp = (await ethers.provider.getBlock('latest')).timestamp
const expirationDate = blockTimestamp + duration + 1
await expect(marketplace.connect(lender).createDirectRental(directRental))
.to.emit(marketplace, 'DirectRentalStarted')
.withArgs(
Expand All @@ -485,7 +483,6 @@ describe('OriumMarketplace', () => {
tokenId,
lender.address,
borrower.address,
expirationDate,
directRental.duration,
directRental.roles,
directRental.rolesData,
Expand Down

0 comments on commit fdae168

Please sign in to comment.