Skip to content

Commit

Permalink
fix: update patch to match name used in source PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-rushakoff committed Oct 26, 2024
1 parent dead8ed commit a402ce3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 0cb98710913f2c9e2ca2e4c51eab08716295ad1f Mon Sep 17 00:00:00 2001
From ed86e53dc20994a2a6b7b494a66a1c6e3dd69ea8 Mon Sep 17 00:00:00 2001
From: Mark Rushakoff <[email protected]>
Date: Fri, 25 Oct 2024 15:35:39 -0400
Subject: [PATCH 1/2] chore: use cosmossdk.io/log/slog
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 6d67780a97baabdb7c02ff408079eb417bb43e38 Mon Sep 17 00:00:00 2001
From a8c0a22755d5f44fb2e328cfd1b4ee9202d6399d Mon Sep 17 00:00:00 2001
From: Andrew Gouin <[email protected]>
Date: Fri, 25 Oct 2024 16:25:31 -0600
Subject: [PATCH 2/2] fix: allow customizing query and tx flags
Expand All @@ -8,7 +8,7 @@ Subject: [PATCH 2/2] fix: allow customizing query and tx flags
1 file changed, 46 insertions(+), 6 deletions(-)

diff --git a/client/flags/flags.go b/client/flags/flags.go
index d44ed31679..b4992e662f 100644
index d44ed31679..41664664b1 100644
--- a/client/flags/flags.go
+++ b/client/flags/flags.go
@@ -90,6 +90,10 @@ const (
Expand All @@ -26,8 +26,8 @@ index d44ed31679..b4992e662f 100644
OutputFormatText = "text"
)

+// FlagOpts defines customization options for command flags.
+type FlagOpts struct {
+// NodeFlagOpts defines customization options for command flags.
+type NodeFlagOpts struct {
+ // DefaultGRPC specifies whether GRPC should be used by default over RPC.
+ DefaultGRPC bool
+
Expand All @@ -37,8 +37,8 @@ index d44ed31679..b4992e662f 100644
+
+var (
+ // App can override these default flag options
+ QueryFlagOpts *FlagOpts = nil
+ TxFlagOpts *FlagOpts = nil
+ QueryFlagOpts *NodeFlagOpts = nil
+ TxFlagOpts *NodeFlagOpts = nil
+)
+
// LineBreak can be included in a command list to provide a blank line
Expand All @@ -64,7 +64,7 @@ index d44ed31679..b4992e662f 100644
}

+// AddNodeFlags adds common node network flags to a flag set.
+func AddNodeFlags(f *pflag.FlagSet, opts *FlagOpts) {
+func AddNodeFlags(f *pflag.FlagSet, opts *NodeFlagOpts) {
+ if opts != nil && opts.DefaultGRPC {
+ f.String(FlagNode, "", FlagNodeDesc)
+ f.String(FlagGRPC, "localhost:9090", FlagGRPCDesc)
Expand Down

0 comments on commit a402ce3

Please sign in to comment.