Skip to content

Commit

Permalink
Fix return type of web3.eth.getCode
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Mar 13, 2020
1 parent 141275c commit c7b6a3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ethpm/_utils/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
Tuple,
)

from eth_typing import (
HexStr,
)
from eth_utils import (
is_same_address,
to_bytes,
Expand All @@ -17,6 +14,9 @@
from eth_utils.toolz import (
get_in,
)
from hexbytes import (
HexBytes,
)

from ethpm.exceptions import (
BytecodeLinkingError,
Expand Down Expand Up @@ -47,7 +47,7 @@ def get_linked_deployments(deployments: Dict[str, Any]) -> Dict[str, Any]:


def validate_linked_references(
link_deps: Tuple[Tuple[int, bytes], ...], bytecode: HexStr
link_deps: Tuple[Tuple[int, bytes], ...], bytecode: HexBytes
) -> None:
"""
Validates that normalized linked_references (offset, expected_bytes)
Expand Down
2 changes: 1 addition & 1 deletion web3/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def getProof(

def getCode(
self, account: Union[Address, ChecksumAddress, ENS], block_identifier: BlockIdentifier=None
) -> HexStr:
) -> HexBytes:
if block_identifier is None:
block_identifier = self.defaultBlock
return self.web3.manager.request_blocking(
Expand Down

0 comments on commit c7b6a3c

Please sign in to comment.