From e2861e75918c50aa754348b2f4a62c69f860961c Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 18 Oct 2016 14:49:03 -0300 Subject: [PATCH] fix spacing --- contracts/token/CrowdsaleToken.sol | 42 +++++++++++++++--------------- contracts/token/SimpleToken.sol | 18 ++++++------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/contracts/token/CrowdsaleToken.sol b/contracts/token/CrowdsaleToken.sol index 7fd363cb0..6d748f421 100644 --- a/contracts/token/CrowdsaleToken.sol +++ b/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; + } } diff --git a/contracts/token/SimpleToken.sol b/contracts/token/SimpleToken.sol index ccb34769f..917a226cb 100644 --- a/contracts/token/SimpleToken.sol +++ b/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; + } }