From 392b62b88c9c18b8ff6ab469a271a7b70de8955b Mon Sep 17 00:00:00 2001 From: Ilias Tsatiris Date: Fri, 9 Jan 2026 13:38:54 +0200 Subject: [PATCH] docs: document the new invocation to update the call tracer test cases --- eth/tracers/internal/tracetest/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/eth/tracers/internal/tracetest/README.md b/eth/tracers/internal/tracetest/README.md index 8c3d5d275f..cd1be91592 100644 --- a/eth/tracers/internal/tracetest/README.md +++ b/eth/tracers/internal/tracetest/README.md @@ -7,4 +7,12 @@ In the Geth console do: let tx = '0x...' loadScript('makeTest.js') makeTest(tx, { tracer: 'callTracer' }) -``` \ No newline at end of file +``` + +## Updating the existing call tracer test cases +In case a change is introduced to the output/format of the call tracer, you may use the following invocation to update the expected output with the current output: +```bash +UPDATE_TESTS=1 go test ./eth/tracers/internal/tracetest +``` + +This will blindly "accept" the current trace response as the correct one, so manual inspection of the updated outputs is advised to ensure they are as expected.