forked from iiitl/realty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- [x] Added Memory keyword for string datatype - [x] Memory usage Optimization - [x] Made function payable and transferred nft after successful transfer of funds to the user - [x] remove unnecessary code and optimized the function for seller - [x] added visiblity keyword external for ERC721 interface - [x] Completed the deployment script of Contract.sol
- Loading branch information
1 parent
22d9310
commit 8ab6da7
Showing
21 changed files
with
6,400 additions
and
6,496 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
...zeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
...enzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Counters.sol/Counters.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\..\\..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\build-info\\dbf2d9d471c032570678876827378bb3.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\build-info\\dbf2d9d471c032570678876827378bb3.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/58e80b410d37a11575dc501a2bebf175.json" | ||
"buildInfo": "..\\..\\build-info\\bc8cb46f11f8679e378bb1f6786fcf74.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
const { expect } = require('chai'); | ||
const { ethers } = require('hardhat'); | ||
const tokens = (n) => { | ||
return ethers.utils.parseUnits(n.toString(), 'ether') | ||
} | ||
|
||
async function main() { | ||
const [deployer] = await ethers.getSigners(); | ||
|
||
const RealEstate =await ethers.getContractFactory('RealEstate'); | ||
// Deploy RealEstate contract | ||
const RealEstate = await ethers.getContractFactory('RealEstate'); | ||
const realEstate = await RealEstate.deploy(); | ||
await realEstate.deployed(); | ||
console.log('RealEstate contract deployed to:', realEstate.address); | ||
|
||
console.log('realEstate address' + realEstate.address); | ||
console.log("Mining starting"); | ||
|
||
|
||
// Deploy Contract (renamed from your other contract) | ||
const Contract = await ethers.getContractFactory('Contract'); | ||
const contract = await Contract.deploy(realEstate.address, deployer.address); | ||
await contract.deployed(); | ||
console.log('Contract deployed to:', contract.address); | ||
|
||
|
||
console.log("Mining starting"); | ||
} | ||
|
||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); | ||
|
||
}); |
Oops, something went wrong.