Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 

Repository files navigation

learn-base-smart-contract

A simple Solidity contract deployed on Base network. Part of Base Learn course.

πŸš€ Learn Base – My First Smart Contract on Base

This project is part of the Base Learn course.
It includes simple Solidity contracts I deployed on the Base testnet (Base Sepolia).


πŸ“˜ Contract: AddressBook.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract AddressBook {
    mapping(address => string) private names;

    function setName(string memory _name) public {
        names[msg.sender] = _name;
    }

    function getName(address _address) public view returns (string memory) {
        return names[_address];
    }

    function removeName() public {
        delete names[msg.sender];

🌐 Deployed on Base Testnet

Network: Base Sepolia

Verified via: Base Learn Consul Exercise

Wallet: MetaMask

🧩 My Learning Notes

Learned how to use mapping in Solidity

Practiced error handling and gas optimization

Connected MetaMask with Base network

Deployed and verified contracts using Remix

πŸ’« Next Steps

Build a frontend with Gradio or Next.js

Deploy to Base Mainnet using forge or hardhat

Contribute to open-source projects on Base πŸŒ‰

---

6️⃣ Kliknij **Commit changes**



## 🧩 KROK 4 β€” (Opcjonalnie) Dodaj plik kontraktu

1️⃣ Kliknij **Add file β†’ Upload files**  
2️⃣ Wgraj plik `AddressBook.sol` z Twojego komputera  
3️⃣ Kliknij **Commit changes**

---
# Update: My first commit to GitHub πŸš€

## βœ… GOTOWE!

About

A simple Solidity contract deployed on Base network. Part of Base Learn course.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors