2

I have a smart contract deployed to mainnet. A user has executed a transaction that resulted in a revert failure. How can I debug this transaction to determine what exactly happened that resulted in this failure?

(I have the smart contract source code)

  • You can review the transaction hash on etherscan.io. You can also post it here, so perhaps someone can help you with it. You might also want to post you contract source code here, and indicate which function was called on it. – goodvibration Mar 2 '19 at 18:34
5

For debugging transaction you can use traceTransaction debugging method that will attempt to run transaction as it was executed in the network. You can get more details from this official documentation: https://github.com/ethereum/go-ethereum/wiki/Management-APIs#debug_tracetransaction

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.