Commit 560a855d by zava Committed by Alejandro Santander

further example documentation

parent 80ae074c
......@@ -6,6 +6,11 @@ import "../ownership/Inheritable.sol";
/**
* @title SimpleSavingsWallet
* @dev Simplest form of savings wallet that can be inherited if owner dies.
* In this example, we take a very simple savings wallet providing two operations
* (to send and receive funds) and extend its capabilities by making it Inheritable.
* The account that creates the contract is set as owner, who has the authority to
* choose an heir account. Heir account can reclaim the contract ownership in the
* case that the owner dies.
*/
contract SimpleSavingsWallet is Inheritable {
......@@ -31,4 +36,4 @@ contract SimpleSavingsWallet is Inheritable {
payee.transfer(amount);
Sent(payee, amount, this.balance);
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment