From 7691ec34e4984e8ed0dcd21342fb77e250ab0225 Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Tue, 20 Aug 2024 16:24:15 -0300 Subject: [PATCH] Docs correction --- apps/docs/pages/inspect-handlers.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/pages/inspect-handlers.mdx b/apps/docs/pages/inspect-handlers.mdx index 39be891..d891cf5 100644 --- a/apps/docs/pages/inspect-handlers.mdx +++ b/apps/docs/pages/inspect-handlers.mdx @@ -21,7 +21,7 @@ const app = createApp({ url: "http://127.0.0.1:5004" }); app.addInspectHandler(handler); ``` -Reports are the only kind of output that inspect handlers should create. +Reports are the only kind of output that inspect handlers can create. The state of the Cartesi machine as a whole is not modified on an inspect request, so you should only use this kind of request handler to return application state (and not modify the state). Another useful use case of inspects is to simulate the outcome of an input, like doing some kind of validation logic, and returning the expected result.