diff --git a/example/wallet/wallet.sol b/example/wallet/wallet.sol index 9881c385..5c7d9c84 100644 --- a/example/wallet/wallet.sol +++ b/example/wallet/wallet.sol @@ -13,7 +13,7 @@ pragma solidity ^0.4.10; contract multiowned { - // TYPES + // TYPES // struct for the status of a pending operation. struct PendingState { @@ -22,7 +22,7 @@ contract multiowned { uint index; } - // EVENTS + // EVENTS // this contract only has six types of events: it can accept a confirmation, in which case // we record owner and operation (hash) alongside it. @@ -35,7 +35,7 @@ contract multiowned { // the last one is emitted if the required signatures change event RequirementChanged(uint newRequirement); - // MODIFIERS + // MODIFIERS // simple single-sig function modifier. modifier onlyowner { @@ -50,7 +50,7 @@ contract multiowned { _; } - // METHODS + // METHODS // constructor is given number of sigs required to do protected "onlymanyowners" transactions // as well as the selection of addresses capable of confirming them. @@ -131,7 +131,7 @@ contract multiowned { return address(m_owners[ownerIndex + 1]); } - function isOwner(address _addr) returns (bool) { + function isOwner(address _addr) constant returns (bool) { return m_ownerIndex[_addr] > 0; } @@ -211,7 +211,7 @@ contract multiowned { delete m_pendingIndex; } - // FIELDS + // FIELDS // the number of owners that must confirm the same operation before it is run. uint public m_required; @@ -233,7 +233,7 @@ contract multiowned { // uses is specified in the modifier. contract daylimit is multiowned { - // MODIFIERS + // MODIFIERS // simple modifier for daily limit. modifier limitedDaily(uint _value) { @@ -241,7 +241,7 @@ contract daylimit is multiowned { _; } - // METHODS + // METHODS // constructor - stores initial daily limit and records the present day's index. function daylimit(uint _limit) { @@ -278,7 +278,7 @@ contract daylimit is multiowned { // determines today's index. function today() private constant returns (uint) { return now / 1 days; } - // FIELDS + // FIELDS uint public m_dailyLimit; uint public m_spentToday; @@ -288,7 +288,7 @@ contract daylimit is multiowned { // interface contract for multisig proxy contracts; see below for docs. contract multisig { - // EVENTS + // EVENTS // logged events: // Funds has arrived into the wallet (record how much). @@ -313,7 +313,7 @@ contract multisig { // Wallet(w).from(anotherOwner).confirm(h); contract Wallet is multisig, multiowned, daylimit { - // TYPES + // TYPES // Transaction structure to remember details of transaction lest it need be saved for a later call. struct Transaction { @@ -384,7 +384,7 @@ contract Wallet is multisig, multiowned, daylimit { super.clearPending(); } - // FIELDS + // FIELDS // pending transactions we have at present. mapping (bytes32 => Transaction) m_txs;