This file contains hidden or 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
0x247B201d48765910a77AFbc7D3629c9f0cDF8a93 |
This file contains hidden or 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
0xe5a3D7d96B1E401B8B8148648008B9F1CF528309 |
This file contains hidden or 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.4; | |
contract HelloEthSalon { | |
function HelloEthSalon() { | |
// constructor | |
} | |
} |
This file contains hidden or 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.4; | |
contract HelloEthSalon { | |
string message = 'Hello Ethereum Salon!' | |
function HelloEthSalon() { | |
// constructor | |
} | |
function GetMessage() return (string) { |
This file contains hidden or 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.4; | |
contract HelloEthSalon { | |
string message = "Hello Ethereum Salon!"; | |
function HelloEthSalon() { | |
// constructor | |
} | |
function GetMessage() returns (string) { |
This file contains hidden or 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
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!"); | |
}); | |
}); |
This file contains hidden or 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
var Migrations = artifacts.require("./Migrations.sol"); | |
var HelloEthSalon = artifacts.require('./HelloEthSalon.sol'); | |
module.exports = function(deployer) { | |
deployer.deploy(Migrations); | |
deployer.deploy(HelloEthSalon); | |
}; |
This file contains hidden or 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.4; | |
contract HelloEthSalon { | |
string message = "I know smart contract testing!!"; | |
function HelloEthSalon() { | |
// constructor | |
} | |
function GetMessage() returns (string) { |
This file contains hidden or 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
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 === "I know smart contract testing!!"); | |
}); | |
}); |
This file contains hidden or 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
0x247B201d48765910a77AFbc7D3629c9f0cDF8a93 |