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

integration-tests: convert cosmos pub keys to prefixed addresses #365

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

cfal
Copy link
Collaborator

@cfal cfal commented Aug 31, 2023

BCI-1740

@cfal cfal changed the title pkg/cosmos/client/client.go: add comment to remove SignAndBroadcast integration-tests: convert cosmos pub keys to prefixed addresses Aug 31, 2023
@cfal cfal force-pushed the cosmos-keystore branch 3 times, most recently from fd629af to 847d1e9 Compare September 7, 2023 10:01
@cfal cfal marked this pull request as ready for review September 7, 2023 10:20
@cfal cfal requested a review from calvwang9 September 7, 2023 10:21
)

// Creates a bech32 address from a hex-encoded secp256k1 public key.
func CreateBech32Address(pubKey, accountPrefix string) (string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

not a big deal but iirc, this function/logic is duplicated in the keystore in core right? is it worth consolidating into one function across both repos?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

definitely - i'm planning on removing the keystore code and get it to use this function.

@cfal cfal merged commit 609fec6 into develop Sep 7, 2023
12 of 13 checks passed
@cfal cfal deleted the cosmos-keystore branch September 7, 2023 17:31
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