The Simple Series aims to maintain repos of the simplest way to build various frontends that interact with smart contracts. You can find more from this series at the end of this page.
Here is the simplest ethereum virtual machine smart contract. You tell the contract a joke and it will send some ether in return. It is built using Foundry. You can interact with this contract using this web-dapp. The contract and this dapp are made to work with the Ethereum Goerli Testnet currently.
- Close the repo.
forge build
to build the contracts.forge test
to run tests- To deploy it on your own. You can use the
forge create ...
. More details here
All kinds of contributions from upgrading the code, libraries, readme, add new features, etc. are welcome.