This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| error AlreadyRegistered(); | |
| error PersonNotFound(address userAddress); | |
| contract PersonRegistry { | |
| struct Person { | |
| string name; | |
| uint256 age; |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| error AlreadyRegistered(); | |
| error PersonNotFound(address userAddress); | |
| contract PersonRegistry { | |
| struct Person { | |
| string name; | |
| uint256 age; |