We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca8679c + ecf6e07 commit 8b32068Copy full SHA for 8b32068
1 file changed
contract/Database.sol
@@ -19,13 +19,7 @@ contract Database{
19
mapping( address => Details) private list;
20
21
uint256 private count=0;
22
-
23
24
25
26
mapping (string => bool) public added;
27
28
29
address public admin;
30
bool alreadyset=false;
31
@@ -34,14 +28,10 @@ contract Database{
34
35
}
36
37
38
modifier personPresent{
39
32
require(keccak256(abi.encodePacked(list[msg.sender].aadharId)) != keccak256(abi.encodePacked("")), "Person doesn't exist");
40
33
_;
41
- }
42
43
44
+ }
45
modifier Added (string memory aadhar)
46
{
47
require(!added[aadhar],"Details already added");
@@ -94,5 +84,6 @@ contract Database{
94
84
return details;
95
85
96
86
87
+
97
88
98
89
0 commit comments