Skip to content

zarifpour/zarifpour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 

Repository files navigation

imposter


 📆 Connect 

 🌎 Website 

 📫 Telegram 

 💼 LinkedIn 

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.14;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppole/contracts/adjectives/Delicious.sol";

contract README is Delicious, Ownable {
    string public ens;
    Emoji[] public abilities;

    error NoLove();
    error ItsOver9000();

    event Cheers(address indexed sender);

    constructor() {
        ens = "zarifpour.eth";
        abilities = ["💠", "🐍", "🔎", "🔒", "🧪", "🗣", "🎨"];
    }

    function donate() public payable {
        if (msg.value == 0) revert NoLove();
        if (msg.value > 9000) revert ItsOver9000();
        emit Cheers(msg.sender);
    }
    
    function withdraw() external payable onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }
}

About

Config files for my GitHub profile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published