foundry
foundry copied to clipboard
Support cast run quorum private txn
This PR is raised to support debugging Quorum private transactions with cast run
. Context: https://github.com/foundry-rs/foundry/issues/9057
Motivation
Quorum private transactions are not generating the right traces with cast
tooling due to the way that the client masks the actual transaction input data.
Solution
Quorum private transactions have a specified format that is unique to the blockchain. The transaction input is a 64 bytes Tessera hash, and the recovery id of a private transaction can only be 37/38. Based on the criteria, we can get the CLI to make an additional RPC call to fetch the actual private transaction input data to replace the tessera hash.