Prefix versions (#1285)

* Prefix versions

* Fix solidity_contract tests
pull/1289/head
Nikhil Parasaram 5 years ago committed by GitHub
parent e23a69637e
commit fc5435f281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tests/solidity_contract_test.py
  2. 2
      tests/testdata/input_contracts/calls.sol
  3. 2
      tests/testdata/input_contracts/constructor_assert.sol
  4. 2
      tests/testdata/input_contracts/environments.sol
  5. 3
      tests/testdata/input_contracts/ether_send.sol
  6. 2
      tests/testdata/input_contracts/exceptions.sol
  7. 2
      tests/testdata/input_contracts/kinds_of_calls.sol
  8. 2
      tests/testdata/input_contracts/metacoin.sol
  9. 2
      tests/testdata/input_contracts/multi_contracts.sol
  10. 2
      tests/testdata/input_contracts/nonascii.sol
  11. 2
      tests/testdata/input_contracts/origin.sol
  12. 1
      tests/testdata/input_contracts/overflow.sol
  13. 2
      tests/testdata/input_contracts/returnvalue.sol
  14. 2
      tests/testdata/input_contracts/rubixi.sol
  15. 2
      tests/testdata/input_contracts/suicide.sol
  16. 2
      tests/testdata/input_contracts/underflow.sol
  17. 2
      tests/testdata/input_contracts/weak_random.sol

@ -12,7 +12,7 @@ class SolidityContractTest(BaseTestCase):
input_file = TEST_FILES / "multi_contracts.sol" input_file = TEST_FILES / "multi_contracts.sol"
contract = SolidityContract(str(input_file)) contract = SolidityContract(str(input_file))
code_info = contract.get_source_info(142) code_info = contract.get_source_info(109)
self.assertEqual(code_info.filename, str(input_file)) self.assertEqual(code_info.filename, str(input_file))
self.assertEqual(code_info.lineno, 14) self.assertEqual(code_info.lineno, 14)
@ -22,7 +22,7 @@ class SolidityContractTest(BaseTestCase):
input_file = TEST_FILES / "multi_contracts.sol" input_file = TEST_FILES / "multi_contracts.sol"
contract = SolidityContract(str(input_file), name="Transfer1") contract = SolidityContract(str(input_file), name="Transfer1")
code_info = contract.get_source_info(142) code_info = contract.get_source_info(109)
self.assertEqual(code_info.filename, str(input_file)) self.assertEqual(code_info.filename, str(input_file))
self.assertEqual(code_info.lineno, 6) self.assertEqual(code_info.lineno, 6)
@ -32,7 +32,7 @@ class SolidityContractTest(BaseTestCase):
input_file = TEST_FILES / "constructor_assert.sol" input_file = TEST_FILES / "constructor_assert.sol"
contract = SolidityContract(str(input_file), name="AssertFail") contract = SolidityContract(str(input_file), name="AssertFail")
code_info = contract.get_source_info(70, constructor=True) code_info = contract.get_source_info(75, constructor=True)
self.assertEqual(code_info.filename, str(input_file)) self.assertEqual(code_info.filename, str(input_file))
self.assertEqual(code_info.lineno, 6) self.assertEqual(code_info.lineno, 6)

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Caller { contract Caller {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract AssertFail { contract AssertFail {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract IntegerOverflow2 { contract IntegerOverflow2 {

@ -1,4 +1,5 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Crowdfunding { contract Crowdfunding {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Exceptions { contract Exceptions {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract D { contract D {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract MetaCoin { contract MetaCoin {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Transfer1 { contract Transfer1 {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract nonAscii { contract nonAscii {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Origin { contract Origin {

@ -1,3 +1,4 @@
pragma solidity ^0.5.0;
contract Over { contract Over {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract ReturnValue { contract ReturnValue {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Rubixi { contract Rubixi {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Suicide { contract Suicide {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract Under { contract Under {

@ -1,4 +1,4 @@
pragma solidity 0.5.0; pragma solidity ^0.5.0;
contract WeakRandom { contract WeakRandom {

Loading…
Cancel
Save