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

feat: replace broadcaster's account retriever to use chain's bech32 prefix when converting AccAddress to string #1009

Merged
merged 3 commits into from
Mar 7, 2024
Merged

Conversation

madrezaz
Copy link
Contributor

@madrezaz madrezaz commented Mar 7, 2024

Closes #1008
This PR adds a custom implementation of the AccountRetriever (copied from auth module) which is modified to convert an AccAddress to string using the target chain's bech32 prefix.

@madrezaz madrezaz requested a review from a team as a code owner March 7, 2024 10:31
@madrezaz madrezaz requested a review from vimystic March 7, 2024 10:31
Copy link

vercel bot commented Mar 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Visit Preview Mar 7, 2024 9:22pm

@madrezaz
Copy link
Contributor Author

madrezaz commented Mar 7, 2024

Also, I'll appreciate the backport to v7. Let me know if I have to do something about it (I think some files may need a little bit of modification for v7)

@Reecepbcups Reecepbcups added the BACKPORT backport into all maintained branches label Mar 7, 2024
@Reecepbcups Reecepbcups enabled auto-merge (squash) March 7, 2024 20:04
@Reecepbcups
Copy link
Member

@madrezaz The latest main needs to be merged in then this is good to go :)

@Reecepbcups Reecepbcups merged commit 1d1b837 into strangelove-ventures:main Mar 7, 2024
13 checks passed
mergify bot pushed a commit that referenced this pull request Mar 7, 2024
…refix when converting AccAddress to string (#1009)

* feat: replace broadcaster's account retriever to use chain's bech32 prefix when converting AccAddress to string

* refactor: enhance AccountRetriever

(cherry picked from commit 1d1b837)

# Conflicts:
#	chain/cosmos/broadcaster.go
Reecepbcups pushed a commit that referenced this pull request Mar 11, 2024
…use chain's bech32 prefix when converting AccAddress to string (#1010)

* feat: replace broadcaster's account retriever to use chain's bech32 prefix when converting AccAddress to string (#1009)

* feat: replace broadcaster's account retriever to use chain's bech32 prefix when converting AccAddress to string

* refactor: enhance AccountRetriever

(cherry picked from commit 1d1b837)

# Conflicts:
#	chain/cosmos/broadcaster.go

* fix: resolve conflicts (#1016)

---------

Co-authored-by: MadReza <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BACKPORT backport into all maintained branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broadcaster fails on submitting transaction when the bech32 prefix of the chain is different with sdk.Config
2 participants