From db5d7602fea6a3418d4ae83511c1a35cf9e1c9ca Mon Sep 17 00:00:00 2001 From: Daniil Lashin Date: Wed, 20 Feb 2019 14:34:52 +0300 Subject: [PATCH] docs: fix rpc Tx() method docs (#3331) --- rpc/core/tx.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpc/core/tx.go b/rpc/core/tx.go index f1bfd56a1..aa439218b 100644 --- a/rpc/core/tx.go +++ b/rpc/core/tx.go @@ -16,7 +16,7 @@ import ( // place. // // ```shell -// curl "localhost:26657/tx?hash=0x2B8EC32BA2579B3B8606E42C06DE2F7AFA2556EF" +// curl "localhost:26657/tx?hash=0xF87370F68C82D9AC7201248ECA48CEC5F16FFEC99C461C1B2961341A2FE9C1C8" // ``` // // ```go @@ -26,7 +26,8 @@ import ( // // handle error // } // defer client.Stop() -// tx, err := client.Tx([]byte("2B8EC32BA2579B3B8606E42C06DE2F7AFA2556EF"), true) +// hashBytes, err := hex.DecodeString("F87370F68C82D9AC7201248ECA48CEC5F16FFEC99C461C1B2961341A2FE9C1C8") +// tx, err := client.Tx(hashBytes, true) // ``` // // > The above command returns JSON structured like this: