Last active
February 5, 2024 04:31
-
-
Save nerderlyne/6fb8ec5efefef7456b5ed74bcac7d308 to your computer and use it in GitHub Desktop.
LexDAO Lawyer Registry Contract
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
// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity >=0.8.0; | |
contract LexRegistry { | |
address public owner; | |
mapping(address => lawyer) lawyers; | |
struct lawyer { | |
string name; | |
string jurisdiction; | |
string details; | |
bool availability; | |
} | |
modifier onlyOwner { | |
require(msg.sender == owner, "NOT_OWNER"); | |
_; | |
} | |
constructor() { | |
owner = msg.sender; | |
} | |
function register(string calldata name, string calldata jurisdiction, string calldata details) external onlyOwner { | |
lawyers[owner] = lawyer(name, jurisdiction, details, true); | |
} | |
// function to edit availability (?) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for giving me the important information about the lawyer. I also want to suggest you a criminal lawyer in you r area who help you to handle your criminal case carefully. Being arrested is an overwhelming experience. You are probably confused and may not know what to do. I understand how that feels firsthand, thanks to a serious false accusation that occurred when I was young. You don't have to face these charges alone.