Example: Re-simulate Existing Transaction
In this example, we’ll walk through how to re-simulate a transaction that initially failed due to an issue with the calldata.
Step 1: Locate and Analyze the Failed Transaction
Open Walnut and use the search to find the transaction with hash: 0x04e9aaf268efe3fd9a328f5d40867231dfae14549126db8ed5471d3b3ed4da78
.

The transaction reverted with the following error message: "Number must be greater than 0"
, which originates from is_positive
function call.
Reviewing the calldata shows the function received 0
, which violates the function's requirement for a positive number.
Step 2: Re-Simulate the Transaction
To resolve the issue, modify the calldata by replacing the invalid value 0x0
with a valid positive number, such as 0x5
. This satisfies the is_positive
function's requirement.

Click "Run Simulation" to execute the transaction with the updated calldata.
Step 3: Check the Simulation Result
After running the simulation with the updated calldata, the transaction succeeds. The error is resolved because the updated argument (0x5
) satisfies the is_positive
function's requirement.
You can view the results here.