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. 4
      tests/testdata/input_contracts/nonascii.sol
  11. 2
      tests/testdata/input_contracts/origin.sol
  12. 1
      tests/testdata/input_contracts/overflow.sol
  13. 4
      tests/testdata/input_contracts/returnvalue.sol
  14. 2
      tests/testdata/input_contracts/rubixi.sol
  15. 2
      tests/testdata/input_contracts/suicide.sol
  16. 4
      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"
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.lineno, 14)
@ -22,7 +22,7 @@ class SolidityContractTest(BaseTestCase):
input_file = TEST_FILES / "multi_contracts.sol"
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.lineno, 6)
@ -32,7 +32,7 @@ class SolidityContractTest(BaseTestCase):
input_file = TEST_FILES / "constructor_assert.sol"
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.lineno, 6)

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

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

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

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

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

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

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

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

@ -1,8 +1,8 @@
pragma solidity 0.5.0;
pragma solidity ^0.5.0;
contract nonAscii {
function renderNonAscii () public pure returns (string memory) {
return "Хэллоу Ворлд";
}
}
}

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

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

@ -1,4 +1,4 @@
pragma solidity 0.5.0;
pragma solidity ^0.5.0;
contract ReturnValue {
@ -14,4 +14,4 @@ contract ReturnValue {
require(success);
}
}
}

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

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

@ -1,4 +1,4 @@
pragma solidity 0.5.0;
pragma solidity ^0.5.0;
contract Under {
@ -20,4 +20,4 @@ contract Under {
function balanceOf(address _owner) public view returns (uint balance) {
return balances[_owner];
}
}
}

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

Loading…
Cancel
Save