further example documentation
This commit is contained in:
committed by
Alejandro Santander
parent
80ae074c57
commit
560a855dc7
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user