Fix rubixi.sol and walletlibrary.sol

pull/953/head
Nikhil Parasaram 6 years ago
parent 40d02c662a
commit 80fa123639
  1. 2
      solidity_examples/WalletLibrary.sol
  2. 2
      solidity_examples/rubixi.sol

@ -212,7 +212,7 @@ contract WalletLibrary is WalletEvents {
} }
// throw unless the contract is not yet initialized. // 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 // constructor - just pass on the owner array to the multiowned and
// the limit to daylimit // the limit to daylimit

@ -34,7 +34,7 @@ contract Rubixi {
//Fee functions for creator //Fee functions for creator
function collectAllFees() public onlyowner { function collectAllFees() public onlyowner {
require(collectedFees == 0); require(collectedFees > 0);
creator.transfer(collectedFees); creator.transfer(collectedFees);
collectedFees = 0; collectedFees = 0;
} }

Loading…
Cancel
Save