Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
style(): Second Danil's review
Browse files Browse the repository at this point in the history
  • Loading branch information
clesaege committed Nov 8, 2019
1 parent a899647 commit a7acdc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/ERC20Seller.sol
Expand Up @@ -31,9 +31,9 @@ contract ERC20Seller {


/* Storage */ /* Storage */


address payable seller; // The party selling the tokens. address payable seller; // The party selling the tokens.
IERC20 public token; // The token to be sold. 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. uint public divisor; // The divisor of the token price. It is used to allow prices lower than 1 wei / basic_unit.


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


Expand Down

0 comments on commit a7acdc2

Please sign in to comment.