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

fix: withdrawal cli for rewards fp #231

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

* [#199](https://github.com/babylonlabs-io/finality-provider/pull/199) EOTS signing for multiple finality providers
* [#203](https://github.com/babylonlabs-io/finality-provider/pull/203) fpd cli: Withdraw rewards and set withdraw addr
* [#231](https://github.com/babylonlabs-io/finality-provider/pull/231) fix: withdrawal cli for rewards fp

## v0.13.0

Expand Down
7 changes: 6 additions & 1 deletion finality-provider/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/std"
"github.com/cosmos/cosmos-sdk/x/auth/types"
incentivetypes "github.com/babylonlabs-io/babylon/x/incentive/types"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

Expand All @@ -22,13 +24,16 @@ func PersistClientCtx(ctx client.Context) func(cmd *cobra.Command, _ []string) e
encCfg := params.DefaultEncodingConfig()
std.RegisterInterfaces(encCfg.InterfaceRegistry)
bstypes.RegisterInterfaces(encCfg.InterfaceRegistry)
incentivetypes.RegisterInterfaces(encCfg.InterfaceRegistry)
types.RegisterInterfaces(encCfg.InterfaceRegistry)

ctx = ctx.
WithCodec(encCfg.Codec).
WithInterfaceRegistry(encCfg.InterfaceRegistry).
WithTxConfig(encCfg.TxConfig).
WithLegacyAmino(encCfg.Amino).
WithInput(os.Stdin)
WithInput(os.Stdin).
WithAccountRetriever(types.AccountRetriever{})

// set the default command outputs
cmd.SetOut(cmd.OutOrStdout())
Expand Down
2 changes: 1 addition & 1 deletion finality-provider/config/babylon.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func DefaultBBNConfig() BBNConfig {
// Setting this to relatively low value, out current babylon client (lens) will
// block for this amout of time to wait for transaction inclusion in block
BlockTimeout: 1 * time.Minute,
OutputFormat: dc.OutputFormat,
OutputFormat: "text",
SignModeStr: dc.SignModeStr,
}
}
Expand Down
Loading