Skip to content

Commit

Permalink
docs(rosetta): fix documentation (#17610)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency authored Sep 1, 2023
1 parent 2e9e5d6 commit ceb1b9d
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit ceb1b9d

Please sign in to comment.