From be272a43ad41c9175001b12c348b7cfa2868f9d4 Mon Sep 17 00:00:00 2001 From: Kevin Gathuku Date: Wed, 6 Dec 2023 18:38:01 +0300 Subject: [PATCH] Update quickstart docs Fix wrong invocation flags when calling cast --to-ascii --- docs/src/quickstart/deploy_contract.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/quickstart/deploy_contract.md b/docs/src/quickstart/deploy_contract.md index 4dc9638b56..74c89427b4 100644 --- a/docs/src/quickstart/deploy_contract.md +++ b/docs/src/quickstart/deploy_contract.md @@ -131,10 +131,10 @@ The response arrives in the form of hex-encoded bytes padded with zeroes: Foundry provides a built-in method to convert this hex string into human-readable ASCII. You can do this as follows: ```sh -cast to_ascii "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000087765203c33204665000000000000000000000000000000000000000000000000" +cast --to-ascii "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000087765203c33204665000000000000000000000000000000000000000000000000" ``` -or simply pipe the output of the `cast call` to `to_ascii` to do the query and conversion in a single command: +or simply pipe the output of the `cast call` to `cast --to-ascii` to do the query and conversion in a single command: ```sh cast call --rpc-url https://rpc.sepolia.org "get_msg(address)" | cast --to-ascii