Skip to content

Instantly share code, notes, and snippets.

View amazingandyyy's full-sized avatar
🦄

Andy Chen amazingandyyy

🦄
View GitHub Profile
pragma solidity ^0.4.4;
contract HelloEthSalon {
string message = "I know smart contract testing!!";
function HelloEthSalon() {
// constructor
}
function GetMessage() returns (string) {
var Migrations = artifacts.require("./Migrations.sol");
var HelloEthSalon = artifacts.require('./HelloEthSalon.sol');
module.exports = function(deployer) {
deployer.deploy(Migrations);
deployer.deploy(HelloEthSalon);
};
var HelloEthSalon = artifacts.require("./HelloEthSalon.sol");
contract("HelloEthSalon:GetMessage", function (accounts) {
it("should return a correct string", async function () {
const contract = await HelloEthSalon.deployed();
const result = await contract.GetMessage.call();
assert.isTrue(result === "Hello Ethereum Salon!");
});
});
pragma solidity ^0.4.4;
contract HelloEthSalon {
string message = "Hello Ethereum Salon!";
function HelloEthSalon() {
// constructor
}
function GetMessage() returns (string) {
pragma solidity ^0.4.4;
contract HelloEthSalon {
string message = 'Hello Ethereum Salon!'
function HelloEthSalon() {
// constructor
}
function GetMessage() return (string) {
pragma solidity ^0.4.4;
contract HelloEthSalon {
function HelloEthSalon() {
// constructor
}
}
0xe5a3D7d96B1E401B8B8148648008B9F1CF528309
0x247B201d48765910a77AFbc7D3629c9f0cDF8a93
@amazingandyyy
amazingandyyy / wallets.md
Last active June 19, 2017 02:36
A step-by-step tutorial of signup for a wallet

After this tutorial, you will have a Bittrex wallet that accept mining-rewards. Bittrex is one the mainly used wallets for miners.

  • step1: sign up a wallet here

  • step2: complete verification 1,2, and 3

  • step3: get your wallet address here

    • for example, click the [+] button of BTC to get your Bitcoin Wallet image1
  • finished

@amazingandyyy
amazingandyyy / addresses.md
Last active June 13, 2017 01:13
wallet address for mining rewards

Andy的Bittrex錢包地址

  • MUSIC(MusicCoin): 0x8dffc25c71dc36faca954ed84b1d6edf7ae55fc7
  • ETH(Ethereum): 0xd1da7401047fd11adf00885611f84243a07dcf97
  • BTC(Bitcoin): 1KyU4VfZGhjHhytupk1BMUS7PNzmjMjaUv
  • ZEC(ZCash): t1ZNjZW5pEqfJeEuCwMecmsdApcg1ADmsUC

Miner Machine Status