diff --git a/MultiSigWalletWithDailyLimit.sol b/MultiSigWalletWithDailyLimit.sol index b2c9f15..82e05ca 100644 --- a/MultiSigWalletWithDailyLimit.sol +++ b/MultiSigWalletWithDailyLimit.sol @@ -1,5 +1,4 @@ -pragma solidity 0.4.10; - +pragma solidity ^0.4.10; /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - @@ -33,49 +32,49 @@ contract MultiSigWallet { modifier onlyWallet() { if (msg.sender != address(this)) - throw; + revert(); _; } modifier ownerDoesNotExist(address owner) { if (isOwner[owner]) - throw; + revert(); _; } modifier ownerExists(address owner) { if (!isOwner[owner]) - throw; + revert(); _; } modifier transactionExists(uint transactionId) { if (transactions[transactionId].destination == 0) - throw; + revert(); _; } modifier confirmed(uint transactionId, address owner) { if (!confirmations[transactionId][owner]) - throw; + revert(); _; } modifier notConfirmed(uint transactionId, address owner) { if (confirmations[transactionId][owner]) - throw; + revert(); _; } modifier notExecuted(uint transactionId) { if (transactions[transactionId].executed) - throw; + revert(); _; } modifier notNull(address _address) { if (_address == 0) - throw; + revert(); _; } @@ -84,7 +83,7 @@ contract MultiSigWallet { || _required > ownerCount || _required == 0 || ownerCount == 0) - throw; + revert(); _; } @@ -108,7 +107,7 @@ contract MultiSigWallet { { for (uint i=0; i<_owners.length; i++) { if (isOwner[_owners[i]] || _owners[i] == 0) - throw; + revert(); isOwner[_owners[i]] = true; } owners = _owners;