Debug reverted transaction

hello. i’m learning how to use truffle debug. it requires transaction hash for debugging, but how do i get it from reverted transactions in ganache?
i’m using web3py script and it is failing during transaction build “.build_transaction({”
ganache-cli shows info like “from”, “to”, “data”, etc.
how do i get hash of reverted transaction, or if i’m thinking completely wrong way then what would be solution in this case?

Hi @flant

I an not sure how you code looks like but you will also receive the transaction hash once the transaction is submitted to chain. So you can also use this hash.

does ganache store reverted transactions?

If your transaction is saved on the dev chain and then reverted as failed transaction then you can view it on your dev ganache UI.

If the transaction was reverted before sending to dev chain then it cannot be viewed on ganache

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.