Skip to content

Commit eeb1466

Browse files
Jerónimo AlbiAlex Johnson
andauthored
fix: change session to use the same spinner reference (ignite#2943)
* fix: change session to use the same spinner referece * chore: update changelog Co-authored-by: Alex Johnson <alex@shmeeload.xyz>
1 parent 47f427e commit eeb1466

13 files changed

+29
-24
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
- Fix config file migration to void leaving end of file content chunks
4040
- Change session print loop to block until all events are handled.
4141
- Handle "No records were found in keyring" message when checking keys.
42+
- [#2941](https://github.com/ignite/cli/issues/2941) Fix session to use the same spinner referece.
4243
- [#2922](https://github.com/ignite/cli/pull/2922) Network commands check for latest config version before building the chain binary.
4344

4445
## [`v0.24.1`](https://github.com/ignite/cli/releases/tag/v0.24.1)

ignite/cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ https://docs.ignite.com/migration`, sc.Version.String(),
303303
return sc, nil
304304
}
305305

306-
func printSection(session cliui.Session, title string) error {
306+
func printSection(session *cliui.Session, title string) error {
307307
return session.Printf("------\n%s\n------\n\n", title)
308308
}
309309

ignite/cmd/network_campaign_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func networkCampaignListHandler(cmd *cobra.Command, _ []string) error {
5151
}
5252

5353
// renderCampaignSummaries writes into the provided out, the list of summarized campaigns
54-
func renderCampaignSummaries(campaigns []networktypes.Campaign, session cliui.Session) error {
54+
func renderCampaignSummaries(campaigns []networktypes.Campaign, session *cliui.Session) error {
5555
var campaignEntries [][]string
5656

5757
for _, c := range campaigns {

ignite/cmd/network_chain_init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func networkChainInitHandler(cmd *cobra.Command, args []string) error {
157157
}
158158

159159
// askValidatorInfo prompts to the user questions to query validator information
160-
func askValidatorInfo(cmd *cobra.Command, session cliui.Session, stakeDenom string) (chain.Validator, error) {
160+
func askValidatorInfo(cmd *cobra.Command, session *cliui.Session, stakeDenom string) (chain.Validator, error) {
161161
var (
162162
account, _ = cmd.Flags().GetString(flagValidatorAccount)
163163
website, _ = cmd.Flags().GetString(flagValidatorWebsite)

ignite/cmd/network_chain_join.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func networkChainJoinHandler(cmd *cobra.Command, args []string) error {
162162

163163
// askPublicAddress prepare questions to interactively ask for a publicAddress
164164
// when peer isn't provided and not running through chisel proxy.
165-
func askPublicAddress(cmd *cobra.Command, session cliui.Session) (publicAddress string, err error) {
165+
func askPublicAddress(cmd *cobra.Command, session *cliui.Session) (publicAddress string, err error) {
166166
ctx := cmd.Context()
167167

168168
if gitpod.IsOnGitpod() {

ignite/cmd/network_chain_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func networkChainListHandler(cmd *cobra.Command, _ []string) error {
7777
}
7878

7979
// renderLaunchSummaries writes into the provided out, the list of summarized launches
80-
func renderLaunchSummaries(chainLaunches []networktypes.ChainLaunch, session cliui.Session, advanced bool) error {
80+
func renderLaunchSummaries(chainLaunches []networktypes.ChainLaunch, session *cliui.Session, advanced bool) error {
8181
header := LaunchSummaryHeader
8282
if advanced {
8383
// advanced information show the campaign ID, type of network and rewards for incentivized testnet

ignite/cmd/network_chain_show.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewNetworkChainShow() *cobra.Command {
2626
return c
2727
}
2828

29-
func networkChainLaunch(cmd *cobra.Command, args []string, session cliui.Session) (NetworkBuilder, uint64, error) {
29+
func networkChainLaunch(cmd *cobra.Command, args []string, session *cliui.Session) (NetworkBuilder, uint64, error) {
3030
nb, err := newNetworkBuilder(cmd, CollectEvents(session.EventBus()))
3131
if err != nil {
3232
return nb, 0, err

ignite/cmd/network_request_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func networkRequestListHandler(cmd *cobra.Command, args []string) error {
6262
// renderRequestSummaries writes into the provided out, the list of summarized requests
6363
func renderRequestSummaries(
6464
requests []networktypes.Request,
65-
session cliui.Session,
65+
session *cliui.Session,
6666
addressPrefix string,
6767
) error {
6868
requestEntries := make([][]string, 0)

ignite/cmd/network_reward_release.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func networkRewardRelease(cmd *cobra.Command, args []string) (err error) {
203203
func createClient(
204204
cmd *cobra.Command,
205205
n network.Network,
206-
session cliui.Session,
206+
session *cliui.Session,
207207
launchID uint64,
208208
nodeAPI,
209209
spnChainID string,
@@ -254,7 +254,7 @@ func createClient(
254254
return chainRelayer, spnRelayer, err
255255
}
256256

257-
func printRelayerOptions(session cliui.Session, obj, chainID, option string) {
257+
func printRelayerOptions(session *cliui.Session, obj, chainID, option string) {
258258
if obj != "" {
259259
session.Printf("%s The chain %s already have a %s: %s\n",
260260
icons.Bullet,

ignite/cmd/relayer_configure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func relayerConfigureHandler(cmd *cobra.Command, _ []string) (err error) {
459459
func initChain(
460460
cmd *cobra.Command,
461461
r relayer.Relayer,
462-
session cliui.Session,
462+
session *cliui.Session,
463463
name,
464464
accountName,
465465
rpcAddr,

0 commit comments

Comments
 (0)