This Solidity smart contract allows users to manage simple transactions, including deposits, withdrawals, and transfers between accounts. The contract is intended for educational purposes and demonstrates basic concepts such as ownership, balance management, and transaction validation.
-
Initialize Truffle in your project folder
truffle init
After initialization, you will find two folders called
contracts
andmigrations
. Contracts go in thecontracts
folder while contract deployment settings go inmigrations
. -
Features
- Owner Assignment: The contract assigns the creator of the contract as the owner.
- Deposit: Users can deposit funds into their account.
- Withdraw: Users can withdraw funds from their account, provided they have sufficient balance.
- Transfer: Users can transfer funds to another account.