Skip to content

Instantly share code, notes, and snippets.

@marciok
Last active September 8, 2018 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marciok/3f8548164fd68096afa47a990a5d65d0 to your computer and use it in GitHub Desktop.
Save marciok/3f8548164fd68096afa47a990a5d65d0 to your computer and use it in GitHub Desktop.
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