Skip to content

Instantly share code, notes, and snippets.

View jdev-htetwaiyan's full-sized avatar
🏠
Working from home

Htet Wai Yan jdev-htetwaiyan

🏠
Working from home
View GitHub Profile
@jdev-htetwaiyan
jdev-htetwaiyan / PersonRegistry.sol
Created January 29, 2026 16:43
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.28+commit.7893614a-revive-0.1.0-dev.12.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
error AlreadyRegistered();
error PersonNotFound(address userAddress);
contract PersonRegistry {
struct Person {
string name;
uint256 age;
@jdev-htetwaiyan
jdev-htetwaiyan / PersonRegistry.sol
Created January 29, 2026 16:42
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.28+commit.7893614a-revive-0.1.0-dev.12.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
error AlreadyRegistered();
error PersonNotFound(address userAddress);
contract PersonRegistry {
struct Person {
string name;
uint256 age;