Solidity "Joint Savings Account"
To automate the creation of joint savings accounts,Solidity smart contract that accepts two user addresses. These addresses will be able to control a joint savings account. The smart contract will use ether management functions to implement a financial institution’s requirements for providing the features of the joint savings account. These features will consist of the ability to deposit and withdraw funds from the account.
-
The completed Solidity
JointSavings
smart contract. -
A folder named
Execution_Results
that contains at least eight images. These images confirms that the deposit and withdrawal transactions, which are designed to test theJointSavings
functionality in the JavaScript VM, worked as expected.
To automate the creation of joint savings accounts, created a solidity smart contract that accepts two user addresses that are then able to control a joint savings account.Smart contract uses ether management functions to implement various requirements from the financial institution to provide the features of the joint savings account.
Thefile for this contains a pragma
for solidity version 5.0.0
.
following steps were accomplished:
-
Created and worked within a local blockchain development environment using the JavaScript VM provided by the Remix IDE.
-
Scripted and deployed a JointSavings smart contract.
-
Interacted with deployed smart contract to transfer and withdraw funds.
After Deploying the contract, it’s time to test its functionality! After each step, captured a screenshot of the execution, and then saved it in a folder named Execution_Results
. Shared this folder with files.
To show interaction with deployed smart contract, completed the following steps:
-
Used the
setAccounts
function to define the authorized Ethereum address that will be able to withdraw funds from your contract. -
Tested the deposit functionality of smart contract by sending the following amounts of ether. After transactions, used the
contractBalance
function to verify that the funds were added to the contract: -
After successfully depositing funds into contract, tested the contract’s withdrawal functionality by