Last active
September 8, 2018 23:09
-
-
Save marciok/3f8548164fd68096afa47a990a5d65d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.11 | |
contract Friendship { | |
mapping (address => uint256) public balanceOf;// This creates an array with all balances | |
string public name; | |
string public symbol; | |
uint8 public decimals; | |
/* Initializes contract with initial supply tokens to the creator of the contract */ | |
function Friendship( | |
uint256 initialSupply | |
) { | |
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens | |
name = "Friendship"; | |
symbol = "FRN"; | |
decimals = 2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment