Skip to content

Commit

Permalink
Update vyper registry assets
Browse files Browse the repository at this point in the history
  • Loading branch information
njgheorghita committed Feb 13, 2019
1 parent 2ac317e commit f998d89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"eth-account>=0.2.1,<0.4.0",
"eth-hash[pycryptodome]>=0.2.0,<1.0.0",
"eth-utils>=1.3.0,<2.0.0",
"ethpm>=0.1.4a10,<1.0.0",
"ethpm>=0.1.4a12,<1.0.0",
"hexbytes>=0.1.0,<1.0.0",
"lru-dict>=1.1.6,<2.0.0",
"requests>=2.16.0,<3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/core/pm-module/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def sol_registry(w3):

def vy_registry(w3):
registry_path = ASSETS_DIR / "vyper_registry"
manifest = json.loads((registry_path / "1.0.0.json").read_text().rstrip('\n'))
manifest = json.loads((registry_path / "0.1.0.json").read_text().rstrip('\n'))
registry_package = Package(manifest, w3)
registry_deployer = Deployer(registry_package)
deployed_registry_package = registry_deployer.deploy("registry")
Expand Down
3 changes: 1 addition & 2 deletions tests/core/pm-module/test_ens_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from eth_utils import (
to_bytes,
to_canonical_address,
)
from ethpm import (
ASSETS_DIR,
Expand Down Expand Up @@ -136,7 +135,7 @@ def test_web3_ens(ens):
w3.ens.setup_address('tester.eth', registry.address)
actual_addr = ens.address('tester.eth')
w3.pm.set_registry('tester.eth')
assert w3.pm.registry.address == to_canonical_address(actual_addr)
assert w3.pm.registry.address == actual_addr
w3.pm.release_package('owned', '1.0.0', 'ipfs://QmbeVyFLSuEUxiXKwSsEjef6icpdTdA4kGG9BcrJXKNKUW')
pkg_name, version, manifest_uri = w3.pm.get_release_data('owned', '1.0.0')
assert pkg_name == 'owned'
Expand Down
4 changes: 2 additions & 2 deletions web3/pm.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def __init__(self, address: Address, w3: Web3) -> None:
# todo: validate runtime bytecode
abi = get_vyper_registry_manifest()["contract_types"]["registry"]["abi"]
self.registry = w3.eth.contract(address=address, abi=abi)
self.address = address
self.address = to_checksum_address(address)
self.w3 = w3

@classmethod
Expand Down Expand Up @@ -620,7 +620,7 @@ def _validate_set_ens(self) -> None:


def get_vyper_registry_manifest() -> Dict[str, Any]:
return json.loads((ASSETS_DIR / "vyper_registry" / "1.0.0.json").read_text())
return json.loads((ASSETS_DIR / "vyper_registry" / "0.1.0.json").read_text())


def get_solidity_registry_manifest() -> Dict[str, Any]:
Expand Down

0 comments on commit f998d89

Please sign in to comment.