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: fix default home dir for client.toml #66

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

dudong2
Copy link

@dudong2 dudong2 commented Jul 10, 2024

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • included the necessary unit and integration tests
  • reviewed "Files changed" and left comments if necessary

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@dudong2 dudong2 requested a review from poorphd July 10, 2024 14:19
@dudong2 dudong2 self-assigned this Jul 10, 2024
@zsystm
Copy link

zsystm commented Jul 11, 2024

@dudong2
Could you let me know how you checked this fix works?
I tried the following and fix seems not working.

  1. init cantod to default home dir ($HOME/.cantod is created)
  2. init cantod to another dir ($HOME/other/path/.cantod is created)
  3. cantod start --chain-id canto_9000-1 --home $HOME/other/path
  4. set the break point to ReadDefaultValuesFromDefaultClientConfig and see what happens
  • it creates temp dir
  • read config from that temp dir
  • set ctx.HomeDir to $HOME/.cantod

I expected ctx.HomeDir to be $HOME/other/path/.cantod but it is still $HOME/.cantod.

Copy link

@zsystm zsystm left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@poorphd poorphd left a comment

Choose a reason for hiding this comment

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

LGTM

@dudong2 dudong2 merged commit fe4c431 into v8/develop Jul 11, 2024
8 checks passed
@dudong2 dudong2 deleted the patch/configclient branch July 11, 2024 07:56
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.

3 participants