Skip to content
Permalink
Browse files

style(): Second Danil's review

  • Loading branch information...
clesaege committed Nov 8, 2019
1 parent a899647 commit a7acdc26e7ccd346fcc439a3a3668e216f257e87
Showing with 4 additions and 4 deletions.
  1. +4 −4 contracts/ERC20Seller.sol
@@ -31,9 +31,9 @@ contract ERC20Seller {

/* Storage */

address payable seller; // The party selling the tokens.
IERC20 public token; // The token to be sold.
uint public divisor; // The divisor of the token price. It is used to allow prices lower than 1 wei / basic_unit.
address payable seller; // The party selling the tokens.
IERC20 public token; // The token to be sold.
uint public divisor; // The divisor of the token price. It is used to allow prices lower than 1 wei / basic_unit.

// A sell order.
struct Order {
@@ -101,7 +101,7 @@ contract ERC20Seller {
function removeOrder(uint _orderID) external {
require(msg.sender == seller, "Only the seller can perform this action.");
require(token.transfer(seller, orders[_orderID].amount));
orders[_orderID] = orders[orders.length-1];
orders[_orderID] = orders[orders.length - 1];
--orders.length;
}

0 comments on commit a7acdc2

Please sign in to comment.
You can’t perform that action at this time.