Skip to content

Instantly share code, notes, and snippets.

@nerderlyne
Last active February 5, 2024 04:31
Show Gist options
  • Save nerderlyne/6fb8ec5efefef7456b5ed74bcac7d308 to your computer and use it in GitHub Desktop.
Save nerderlyne/6fb8ec5efefef7456b5ed74bcac7d308 to your computer and use it in GitHub Desktop.
LexDAO Lawyer Registry Contract
// 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 (?)
}
@Offe1981
Copy link

Offe1981 commented Feb 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment