Skip to content

Instantly share code, notes, and snippets.

@goloum07
goloum07 / contracts...AddressBook.sol
Created October 24, 2025 14:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/access/Ownable.sol";
/// @title AddressBook Contract
contract AddressBook is Ownable {
/// @notice Error thrown when a contact is not found
error ContactNotFound(uint id);