Skip to content

fix get_coldkey_password_from_environment resolving wrong password#1843

Merged
thealligatorking merged 2 commits intoopentensor:stagingfrom
backend-developers-ltd:fix_get_cw_passwd_env
May 17, 2024
Merged

fix get_coldkey_password_from_environment resolving wrong password#1843
thealligatorking merged 2 commits intoopentensor:stagingfrom
backend-developers-ltd:fix_get_cw_passwd_env

Conversation

@mjurbanski-reef
Copy link
Contributor

Bug


Description of the Change

Before this change if ENV had set

BT_COLD_PW_WALLET=1
BT_COLD_PW_MY_WALLET=2

Requesting test_get_coldkey_password_from_environment("wallet") would not deterministically return either "1" or "2".

Alternate Designs

Possible Drawbacks

Verification Process

added unit tests

Release Notes

  • get_coldkey_password_from_environment will no longer return passwords from ENV of wallets sharing the same suffix

@mjurbanski-reef mjurbanski-reef force-pushed the fix_get_cw_passwd_env branch from 2082110 to 40ba3ed Compare May 15, 2024 06:32
@mjurbanski-reef
Copy link
Contributor Author

mjurbanski-reef commented May 17, 2024

Anything that needs to be done here to get this merged? I don't see any conflicts with staging, but should I keep hitting "Update branch" or is this good to go as is?
image

@thealligatorking
Copy link
Contributor

@mjurbanski-reef please refresh branch and I will merge

@thealligatorking thealligatorking merged commit d8f7fea into opentensor:staging May 17, 2024
@thealligatorking thealligatorking mentioned this pull request May 17, 2024
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