Skip to content

Commit

Permalink
More diagnostics data
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Aug 10, 2023
1 parent 93dcae0 commit 3752d30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eth_defi/confirmation.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def broadcast_transactions(
# Anvil/Ethereum tester immediately fail on the broadcast
# ValueError: {'code': -32003, 'message': 'Insufficient funds for gas * price + value'}
decoded_tx = decode_signed_transaction(tx.rawTransaction)
raise BroadcastFailure(f"Could not broadcast transaction: {decoded_tx}") from e
raise BroadcastFailure(f"Could not broadcast transaction: {tx.hash}. Transaction data: {decoded_tx}. JSON-RPC error: {e}") from e

assert hash

Expand Down
3 changes: 3 additions & 0 deletions eth_defi/hotwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def __init__(self, account: LocalAccount):
self.account = account
self.current_nonce: Optional[int] = None

def __repr__(self):
return f"<Hot wallet {self.account.address}>"

@property
def address(self):
"""Get address of the private key of the wallet."""
Expand Down

0 comments on commit 3752d30

Please sign in to comment.