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 keys parse bug #3

Merged
merged 1 commit into from
Dec 15, 2021
Merged

fix keys parse bug #3

merged 1 commit into from
Dec 15, 2021

Conversation

okwme
Copy link
Contributor

@okwme okwme commented Dec 9, 2021

originally made the PR against here by mistake: althea-net/cosmos-gravity-bridge#366

same issue was present in gaia where the keys parse command was hanging

@okwme okwme requested a review from jkilpatr as a code owner December 9, 2021 23:14
@@ -59,7 +59,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
return err
}

gravityAppTemplate, gravityAppConfig := initAppConfig();
gravityAppTemplate, gravityAppConfig := initAppConfig()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, looks like my IDE removed the ; automatically but is more of a stylistic choice? feel free to add back or leave

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not a huge deal either way.

@@ -114,6 +114,10 @@ func Execute(rootCmd *cobra.Command) error {
}

func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {

cfg := sdk.GetConfig()
cfg.Seal()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

digging into how this works it just seems strange. Pointer magic going on about sealing the config globally using a reference to it.

I can understand how this pattern would cause mistakes, shouldn't the way this works be modified in the sdk to avoid 'spooky action at a distance' which seems to be the root cause of this bug.

Anyways merging for now.

@jkilpatr jkilpatr merged commit 8b1d024 into Gravity-Bridge:main Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants