forc-call tracing detailed insights #7197
Labels
dev-experience
Anything to do with the developer experience
forc-call
Everything related to the `forc-call` plugin in `forc-client` package
Issue
Transaction
tracing
functionality is being added toforc-call
in this PR: #7196However, there are a few minor issues with the traces which need to be addressed:
[gas-used] <contract-id>:<function-signature>
- given that the ABI is provided for the contractVec<u8>
- but instead be decoded based on the ABI providedPotential implementation details/insights
The call receipt itself does not contain the details of the function being called; instead the transaction must be re-run with a the VM interpreter.
The same approach may be required for the return data
Note: A caveat to the approach above is that a transaction may need to be submitted first - since a hash and storage are required to setup/instantiate a VM.
An example of VM interpreter setup for tracing can be found here: https://github.com/FuelLabs/execution-trace/blob/494c19099fdb70246a5ed08304d9f72731120367/crates/execution-trace/src/lib.rs#L137
The text was updated successfully, but these errors were encountered: