This repo contains the smart contracts behind HelloBase, primarily a HelloBaseFactory.sol
and a HelloBase.sol
template contract. These are purely for educational purposes and are only deployed on a testnet.
Warning
There is no security mechanism to prevent someone else from updating the greeting, as they are meant to be temporal training exercises.
Make sure you already have the Foundry toolchain installed
Clone the repo and install dependencies.
git clone https://github.com/PinataCloud/hello-base-contracts
cd hello-base-contracts
forge install
Compile the contracts
forge build
Run tests
forge test -vvv --gas-report
The factory contract will automatically deploy the template used inside of it, so all you need to do is deploy the factory.
forge create src/HelloBaseFactory.sol:HelloBaseFactory --rpc-url https://sepolia.base.org --private-key <PRIVATE_KEY>
Feel free to reach out if you have any questions!