Skip to content

Commit

Permalink
Merge pull request github#1 from umaresso/nftExploreFilters
Browse files Browse the repository at this point in the history
Nft And Dapp Renting Tested
  • Loading branch information
0xumarkhatab authored Nov 6, 2022
2 parents 6aee3b9 + e12f4b0 commit 40bb74b
Show file tree
Hide file tree
Showing 17 changed files with 585 additions and 427 deletions.
6 changes: 3 additions & 3 deletions contracts/WebsiteRent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract WebsiteRent {
modifier ifWebsiteExists(string memory website) {
require(
websiteExists[website],
"The Website does not exist on HostMyNFT"
"The Website does not exist on RentWeb3"
);
_;
}
Expand All @@ -45,8 +45,8 @@ contract WebsiteRent {
rentTime[website] < block.timestamp,
"Website is already rented"
);
require(msg.value >= prices[website]);
rentTime[website] = block.timestamp + (86400 * rentDays);
require(msg.value >= prices[website],"Insufficient Funds Sent");
rentTime[website] = block.timestamp + (60 * rentDays); //replace 60 with 86400
websiteToDeployment[website] = deployment;
deploymentToWebsite[deployment] = website;
uint256 fee = (prices[website] * 5) / 100;
Expand Down
Loading

0 comments on commit 40bb74b

Please sign in to comment.