fix(contract): remove invalid reference to method

pull/35/head
MaxMustermann2 2 years ago
parent 3e4533d486
commit 6e83b2c8fd
No known key found for this signature in database
GPG Key ID: 4F4AB9DB6FF24C94
  1. 6
      pyhmy/contract.py

@ -6,6 +6,10 @@ from .transaction import (
get_transaction_receipt
)
from .exceptions import (
InvalidRPCReplyError
)
_default_endpoint = 'http://localhost:9500'
_default_timeout = 30
@ -237,4 +241,4 @@ def get_contract_address_from_hash(tx_hash, endpoint=_default_endpoint, timeout=
try:
return get_transaction_receipt(tx_hash, endpoint, timeout)["contractAddress"]
except KeyError as e:
raise InvalidRPCReplyError(method, endpoint) from e
raise InvalidRPCReplyError("hmyv2_getTransactionReceipt", endpoint) from e

Loading…
Cancel
Save