Skip to content

Commit

Permalink
rm wait transaction method
Browse files Browse the repository at this point in the history
rm wait transaction method
  • Loading branch information
romanova-natasha committed May 23, 2024
1 parent 3380e11 commit 6a2e627
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions utils/web3client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,6 @@ def get_transaction_by_hash(self, transaction_hash):
return self._web3.eth.get_transaction(transaction_hash)
except TransactionNotFound:
return None

@allure.step("Get transaction by hash with wait for result is available")
def wait_get_transaction_by_hash(self, transaction_hash, timeout=10):
try:
wait_condition(
lambda: self._web3.eth.get_transaction(transaction_hash) is not None,
timeout_sec=timeout,
)
return self._web3.eth.get_transaction(transaction_hash)
except TransactionNotFound:
return None

@allure.step("Get gas price")
def gas_price(self):
Expand Down

0 comments on commit 6a2e627

Please sign in to comment.