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!"; }