-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename readme.md to README.md
- Loading branch information
1 parent
d1a0a25
commit 7d067a5
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
In this example, the SimpleSmartContract smart contract is used to include programmable conditions related to the release of funds. The contract has an owner, a funds variable, and a conditionsMet variable. The deposit function can only be called by the owner and is used to deposit funds into the contract. The releaseFunds function can also only be called by the owner and is used to release the funds, but only if the conditions have been met. The meetConditions function can also only be called by the owner and is used to meet the necessary conditions. | ||
|
||
When the meetConditions function is called, the conditionsMet variable is set to true. When the releaseFunds function is called, the smart contract checks that the caller is the owner and that the conditions have been met. If these conditions are met, the funds are transferred to the owner, and the funds variable is reset to zero. | ||
|
||
By including programmable conditions in the smart contract code, it is possible to ensure that all parties comply with the terms of the contract. Smart contracts can be programmed to include a wide range of conditions, such as the completion of a project or the delivery of goods, which can help to increase trust and efficiency in business transactions. |
Empty file.