Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
further example documentation
  • Loading branch information
azavalla committed Nov 30, 2017
commit dcdde0c38db9f4b1e9fc213146e85e78183cfb35
7 changes: 6 additions & 1 deletion contracts/examples/SimpleSavingsWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -31,4 +36,4 @@ contract SimpleSavingsWallet is Inheritable {
payee.transfer(amount);
Sent(payee, amount, this.balance);
}
}
}