Browse Source

fix spacing

Manuel Araoz 9 years ago
parent
commit
e2861e7591
2 changed files with 30 additions and 30 deletions
  1. 21 21
      contracts/token/CrowdsaleToken.sol
  2. 9 9
      contracts/token/SimpleToken.sol

+ 21 - 21
contracts/token/CrowdsaleToken.sol

@@ -7,28 +7,28 @@ import "../StandardToken.sol";
  */
 contract CrowdsaleToken is StandardToken {
 
-    string public name = "CrowdsaleToken";
-    string public symbol = "CRW";
-    uint public decimals = 18;
+  string public name = "CrowdsaleToken";
+  string public symbol = "CRW";
+  uint public decimals = 18;
 
-    // 1 ether = 500 example tokens 
-    uint PRICE = 500;
+  // 1 ether = 500 example tokens 
+  uint PRICE = 500;
 
-    function () payable {
-        createTokens(msg.sender);
-    }
-    
-    function createTokens(address recipient) payable {
-        if (msg.value == 0) throw;
-    
-        uint tokens = safeMul(msg.value, getPrice());
+  function () payable {
+    createTokens(msg.sender);
+  }
+  
+  function createTokens(address recipient) payable {
+    if (msg.value == 0) throw;
 
-        totalSupply = safeAdd(totalSupply, tokens);
-        balances[recipient] = safeAdd(balances[recipient], tokens);
-    }
-    
-    // replace this with any other price function
-    function getPrice() constant returns (uint result){
-      return PRICE;
-    }
+    uint tokens = safeMul(msg.value, getPrice());
+
+    totalSupply = safeAdd(totalSupply, tokens);
+    balances[recipient] = safeAdd(balances[recipient], tokens);
+  }
+  
+  // replace this with any other price function
+  function getPrice() constant returns (uint result){
+    return PRICE;
+  }
 }

+ 9 - 9
contracts/token/SimpleToken.sol

@@ -9,14 +9,14 @@ import "../StandardToken.sol";
  */
 contract SimpleToken is StandardToken {
 
-    string public name = "SimpleToken";
-    string public symbol = "SIM";
-    uint public decimals = 18;
-    uint public INITIAL_SUPPLY = 10000;
-    
-    function SimpleToken() {
-      totalSupply = INITIAL_SUPPLY;
-      balances[msg.sender] = INITIAL_SUPPLY;
-    }
+  string public name = "SimpleToken";
+  string public symbol = "SIM";
+  uint public decimals = 18;
+  uint public INITIAL_SUPPLY = 10000;
+  
+  function SimpleToken() {
+    totalSupply = INITIAL_SUPPLY;
+    balances[msg.sender] = INITIAL_SUPPLY;
+  }
 
 }