Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(rosetta): fix documentation #17610

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tools/rosetta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
```

Expand Down
Loading