A simple Solidity contract deployed on Base network. Part of Base Learn course.
This project is part of the Base Learn course.
It includes simple Solidity contracts I deployed on the Base testnet (Base Sepolia).
// 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!