NethermindEth / juno

Starknet client implementation.

Home Page:https://juno.nethermind.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pending Transaction Trace Failure

wojciechos opened this issue · comments

Encountering an "txn hash not found" error when using starknet_traceTransaction on pending transactions. The transactions are initially visible through starknet_getTransactionReceipt and starknet_traceBlockTransactions - pending. However, an immediate trace attempt fails.

Steps to Reproduce

  1. Add a transaction.
  2. Retrieve its receipt via starknet_getTransactionReceipt.
  3. Locate the transaction in starknet_traceBlockTransactions - pending.
  4. Immediately trace the transaction with starknet_traceTransaction and note the "txn hash not found" error.
  5. After txn is not pending anymore, attempt to trace the transaction again, and it should succeed.

(reproduce by running starknet.js test)

Expected Behavior

The transaction should be traceable immediately after it's visible in pending transactions without resulting in a "txn hash not found" error.