From 26703f435ad8eb640228b8ef5bf67bdab2a2b02c Mon Sep 17 00:00:00 2001 From: "Felix C. Morency" <1102868+fmorency@users.noreply.github.com> Date: Fri, 1 Sep 2023 13:34:15 -0400 Subject: [PATCH] docs(rosetta): fix documentation --- 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) ) ```