transaction.py: use correct endpoint

Fix for ` send_and_confirm_raw_transaction`
pull/24/head
Max 3 years ago committed by GitHub
parent 8b62d70d4a
commit 9f5e912b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pyhmy/transaction.py

@ -430,7 +430,7 @@ def send_and_confirm_raw_transaction(signed_tx, endpoint=_default_endpoint, time
-------------
https://api.hmny.io/#f40d124a-b897-4b7c-baf3-e0dedf8f40a0
"""
tx_hash = send_raw_transaction(signed_tx)
tx_hash = send_raw_transaction(signed_tx, endpoint=endpoint)
start_time = time.time()
while((time.time() - start_time) <= timeout):
tx_response = get_transaction_by_hash(tx_hash)

Loading…
Cancel
Save