Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Add logger to get sn hash in error
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Sep 3, 2024
1 parent f1e7ebb commit 24bebcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kakarot_scripts/utils/kakarot.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,10 @@ async def send_starknet_transaction(
)

await wait_for_transaction(tx_hash=response.hash)
receipt = await RPC_CLIENT.get_transaction_receipt(response.hash)
try:
receipt = await RPC_CLIENT.get_transaction_receipt(response.hash)
except ClientError as e:
raise StarknetTransactionError(f"0x{response.hash:064x}:\n{e}") from e
transaction_events = [
event
for event in receipt.events
Expand Down

0 comments on commit 24bebcb

Please sign in to comment.