mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
Merge branch 'master' of github.com:EthereumCommonwealth/go-callisto
This commit is contained in:
commit
0c927975a7
1 changed files with 37 additions and 0 deletions
37
contracts/test/Test_compiler0.4.15.sol
Normal file
37
contracts/test/Test_compiler0.4.15.sol
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
pragma solidity ^0.4.15;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title Basic token
|
||||||
|
* @dev Basic version of CLO_test
|
||||||
|
*/
|
||||||
|
contract CLO_test {
|
||||||
|
string public STR = "Test Callisto NETwork";
|
||||||
|
address public owner;
|
||||||
|
|
||||||
|
function CLO_test()
|
||||||
|
{
|
||||||
|
owner = msg.sender;
|
||||||
|
}
|
||||||
|
|
||||||
|
function TEST_STR() constant returns (string)
|
||||||
|
{
|
||||||
|
return STR;
|
||||||
|
}
|
||||||
|
|
||||||
|
function SetOwner(address _owner)
|
||||||
|
{
|
||||||
|
assert(msg.sender == owner);
|
||||||
|
owner = _owner;
|
||||||
|
}
|
||||||
|
|
||||||
|
function SUM(uint256 _first, uint256 _second) constant returns (uint256)
|
||||||
|
{
|
||||||
|
return (_first + _second);
|
||||||
|
}
|
||||||
|
|
||||||
|
function SetSTR(string _STR)
|
||||||
|
{
|
||||||
|
assert(msg.sender == owner);
|
||||||
|
STR = _STR;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue