From 00408be9b4fad471dd58cf85a7b47e08147848c2 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 15 Nov 2018 08:58:30 +0100 Subject: [PATCH] syntax fix - constructor identifier --- remix-tests/examples/simple_storage.sol | 2 +- remix-tests/tests/examples_1/simple_storage.sol | 2 +- remix-tests/tests/examples_2/simple_storage.sol | 2 +- remix-tests/tests/examples_3/simple_string.sol | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/remix-tests/examples/simple_storage.sol b/remix-tests/examples/simple_storage.sol index 4f8a84a5b1..b7513c34c6 100644 --- a/remix-tests/examples/simple_storage.sol +++ b/remix-tests/examples/simple_storage.sol @@ -2,7 +2,7 @@ pragma solidity ^0.4.7; contract SimpleStorage { uint public storedData; - function SimpleStorage() public { + constructor() public { storedData = 100; } diff --git a/remix-tests/tests/examples_1/simple_storage.sol b/remix-tests/tests/examples_1/simple_storage.sol index 4f8a84a5b1..b7513c34c6 100644 --- a/remix-tests/tests/examples_1/simple_storage.sol +++ b/remix-tests/tests/examples_1/simple_storage.sol @@ -2,7 +2,7 @@ pragma solidity ^0.4.7; contract SimpleStorage { uint public storedData; - function SimpleStorage() public { + constructor() public { storedData = 100; } diff --git a/remix-tests/tests/examples_2/simple_storage.sol b/remix-tests/tests/examples_2/simple_storage.sol index 4f8a84a5b1..b7513c34c6 100644 --- a/remix-tests/tests/examples_2/simple_storage.sol +++ b/remix-tests/tests/examples_2/simple_storage.sol @@ -2,7 +2,7 @@ pragma solidity ^0.4.7; contract SimpleStorage { uint public storedData; - function SimpleStorage() public { + constructor() public { storedData = 100; } diff --git a/remix-tests/tests/examples_3/simple_string.sol b/remix-tests/tests/examples_3/simple_string.sol index 25773f148c..7ac5e2e6c3 100644 --- a/remix-tests/tests/examples_3/simple_string.sol +++ b/remix-tests/tests/examples_3/simple_string.sol @@ -2,7 +2,7 @@ pragma solidity ^0.4.7; contract SimpleString { string public storedData; - function SimpleString() public { + constructor() public { storedData = "Hello world!"; }