From 80fa123639525bed5bdedad1de25ea00b063b2d2 Mon Sep 17 00:00:00 2001 From: Nikhil Parasaram Date: Fri, 8 Mar 2019 00:37:14 +0530 Subject: [PATCH] Fix rubixi.sol and walletlibrary.sol --- solidity_examples/WalletLibrary.sol | 2 +- solidity_examples/rubixi.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solidity_examples/WalletLibrary.sol b/solidity_examples/WalletLibrary.sol index d972cdd6..df10b56b 100644 --- a/solidity_examples/WalletLibrary.sol +++ b/solidity_examples/WalletLibrary.sol @@ -212,7 +212,7 @@ contract WalletLibrary is WalletEvents { } // throw unless the contract is not yet initialized. - modifier only_uninitialized { require(m_numOwners > 0); _; } + modifier only_uninitialized { require(m_numOwners == 0); _; } // constructor - just pass on the owner array to the multiowned and // the limit to daylimit diff --git a/solidity_examples/rubixi.sol b/solidity_examples/rubixi.sol index 8e1567c6..948a07eb 100644 --- a/solidity_examples/rubixi.sol +++ b/solidity_examples/rubixi.sol @@ -34,7 +34,7 @@ contract Rubixi { //Fee functions for creator function collectAllFees() public onlyowner { - require(collectedFees == 0); + require(collectedFees > 0); creator.transfer(collectedFees); collectedFees = 0; }