From edc0a7cd437cde12a7bd64f94bd432929b5f8198 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 29 Oct 2018 15:44:55 +0100 Subject: [PATCH] revert some changes made to contract --- .../test_app/app/contracts/simple_storage.sol | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/test_apps/test_app/app/contracts/simple_storage.sol b/test_apps/test_app/app/contracts/simple_storage.sol index 6cdb8930c..59acff94d 100644 --- a/test_apps/test_app/app/contracts/simple_storage.sol +++ b/test_apps/test_app/app/contracts/simple_storage.sol @@ -2,7 +2,9 @@ pragma solidity ^0.4.25; contract SimpleStorage { uint public storedData; + address public registar; address owner; + event EventOnSet2(bool passed, string message); constructor(uint initialValue) public { storedData = initialValue; @@ -11,13 +13,26 @@ contract SimpleStorage { function set(uint x) public { storedData = x; - require(msg.sender == owner); + //require(msg.sender == owner); //require(msg.sender == 0x0); - storedData = x + 2; + //storedData = x + 2; + } + + function set2(uint x) public { + storedData = x; + emit EventOnSet2(true, "hi"); } function get() public view returns (uint retVal) { return storedData; } + function getS() public pure returns (string d) { + return "hello"; + } + + function setRegistar(address x) public { + registar = x; + } + }