Skip to content

Commit

Permalink
Add correct contract version to data file
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Aug 6, 2021
1 parent 2d7ba01 commit dfd3f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions raiden_contracts/data_0.39.0/contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -10744,6 +10744,6 @@
"UserDeposit.sol": "0b0337ac86d9daa0c1d8e8242ac70b7a92af78d69ca3d0fafcf335e3bef5d1eb",
"Utils.sol": "1bbaf331c04a76131857d2d71d6e2c20b3e080be5f87c0b7c94f4cfa2d229527"
},
"contracts_version": null,
"contracts_version": "0.39.0",
"overall_checksum": "7bf650e7f6448f90426aa7c18e632feb919902cf24fda3bce33cb78926db70e6"
}
}
3 changes: 2 additions & 1 deletion raiden_contracts/tests/test_contracts_compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from raiden_contracts.constants import (
ALDERAAN_VERSION,
BESPIN_VERSION,
CHAINNAME_TO_ID,
CONTRACT_TOKEN_NETWORK,
CONTRACTS_VERSION,
Expand Down Expand Up @@ -243,7 +244,7 @@ def test_contract_manager_constructor_does_not_invent_version() -> None:
assert manager.contracts_version is None


@pytest.mark.parametrize("version", [CONTRACTS_VERSION, ALDERAAN_VERSION, "0.4.0"])
@pytest.mark.parametrize("version", [CONTRACTS_VERSION, ALDERAAN_VERSION, BESPIN_VERSION, "0.4.0"])
def test_contract_manager_constructor_keeps_existing_versions(version: str) -> None:
"""ContractManager should keep an existing version string"""
manager = ContractManager(contracts_precompiled_path(version=version))
Expand Down

0 comments on commit dfd3f08

Please sign in to comment.