From ceb1b9df332a954fbc61cb81ca799fcc20ae466d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20C=2E=20Morency?= <1102868+fmorency@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:46:39 -0400 Subject: [PATCH] docs(rosetta): fix documentation (#17610) --- tools/rosetta/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/rosetta/README.md b/tools/rosetta/README.md index e836ec5ed654..22468dc849aa 100644 --- a/tools/rosetta/README.md +++ b/tools/rosetta/README.md @@ -15,20 +15,20 @@ To enable Rosetta API support, it's required to add the `RosettaCommand` to your Import the `server` package: ```go -import "github.com/cosmos/cosmos-sdk/server" +import rosettaCmd "cosmossdk.io/tools/rosetta/cmd" ``` -Find the following line: +Find the following function: ```go -initRootCmd(rootCmd, encodingConfig) +func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) ``` -After that line, add the following: +Add the following at the end of the function ```go rootCmd.AddCommand( - server.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Codec) + rosettaCmd.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Codec) ) ```