-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Issue: convert Tool Does Not Update currentValue
The convert tool applies a sequence of operations on an input value, such as:
toHextoStringparseUnitsetc.
However, the result of each operation is not stored back into the currentValue. Instead, every operation uses the original input, leading to incorrect final results.
Why This Matters
- Incorrect Behavior: Each operation should be chained — using the output of the previous step as the input to the next.
- User Confusion: The final result will not reflect the intended transformations.
- Debugging Difficulty: Logs may mislead developers because they don’t reflect actual transformations.
Example Problem
Given:
{
"input": "100",
"operations": ["toHex", "toString"]
}The expected result should be:
"100" → "0x64" → "0x64" (as a string)
But instead, both operations run on "100", leading to "0x64" and "100" (wrong).
✅ Proposed Fix
- Track and update the currentValue after each operation so transformations are chained.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels