Skip to content

Solidity smart contract accepting two user addresses to control a joint savings account.

Notifications You must be signed in to change notification settings

Maurolp15/Joint_Savings_Account

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Joint Savings Account

My name is Oscar Lopez, I’m a student at the University of Miami FinTech Bootcamp Program.

In this activity, I was tasked with creating a Solidity smart contract that accepts two addresses which will control a joint savings account. The smart contract will use ether management functions to implement a financial institution’s customers with features to deposit and withdraw funds from the account.

I developed the Solidity started code file to create the joint account contract, the code defines multiple variables including addresses, payable and public types, code also defines a withdraw function, a deposit function, a set account function to include different arguments and requirements as requested, finally a and a fallback function to store ether send from outside the deposit function.

Once all the code is done, I compiled the smart contract to make sure no errors occurred and deployed it in the “JavaScript VM” environment. Finally, I interacted with the contract by checking its functionality, used the dummy accounts given in the ReadMe file to make some deposits and transfers, and finally verified the balance to confirm the transactions were done. I took screenshots, saved them in the “Executions Results” folder and show them below.


Solidity – Contract Compiler

Stocks Phot


Solidity – Contract Deploy

Stocks Phot


Solidity – Set Accounts

Stocks Phot


Solidity – Balance checked after sending 1 Ether in Wei

Stocks Phot


Solidity – Balance checked after sending 10 Ether in Wei

Stocks Phot


Solidity – Balance checked after sending 5 Ether

Stocks Phot


Solidity – Transaction: withdrawing 5 Ether into Account One

Stocks Phot


Solidity – Transaction: withdrawing 10 Ether into Account Two

Stocks Phot


Solidity – Transaction: Last to withdraw and last amount verification address and amount

Stocks Phot

About

Solidity smart contract accepting two user addresses to control a joint savings account.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages