further example documentation

This commit is contained in:
zava
2017-11-28 23:04:39 -03:00
committed by Alejandro Santander
parent 80ae074c57
commit 560a855dc7

View File

@ -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);
}
}
}