Skip to content

Commit

Permalink
Merge pull request #173 from BrendanChou/patch-2
Browse files Browse the repository at this point in the history
optimize can_cancel modifier
  • Loading branch information
gbalabasquer committed Nov 29, 2018
2 parents a9bf3af + 19fe671 commit 1660090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expiring_market.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ contract ExpiringMarket is DSAuth, SimpleMarket {
// after close, anyone can cancel an offer
modifier can_cancel(uint id) {
require(isActive(id));
require(isClosed() || (msg.sender == getOwner(id)));
require((msg.sender == getOwner(id)) || isClosed());
_;
}

Expand Down

0 comments on commit 1660090

Please sign in to comment.