From b96c1caa53560e88891ab83c69350bbddbe36845 Mon Sep 17 00:00:00 2001 From: Dexaran Date: Sat, 30 Dec 2017 11:44:38 +0000 Subject: [PATCH] Basic test case contract for Callisto network initial test. --- contracts/test/Test_compiler0.4.15.sol | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 contracts/test/Test_compiler0.4.15.sol diff --git a/contracts/test/Test_compiler0.4.15.sol b/contracts/test/Test_compiler0.4.15.sol new file mode 100644 index 0000000000..86e5f3f524 --- /dev/null +++ b/contracts/test/Test_compiler0.4.15.sol @@ -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; + } + }