Skip to content

Conversation

yihuang
Copy link
Contributor

@yihuang yihuang commented Aug 29, 2025

Description

Closes: #570

see: cosmos/ibc-go#8573

Solution:

  • support custom address codec in callback middleware

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...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

@yihuang yihuang marked this pull request as ready for review September 1, 2025 06:43
@yihuang yihuang requested review from a team as code owners September 1, 2025 06:43
@aljo242 aljo242 changed the title Problem: ibc transfer don't support hex address feat: ibc transfer don't support hex address Sep 2, 2025
@aljo242
Copy link
Contributor

aljo242 commented Sep 2, 2025

@yihuang needs a changelog and to note that it is API breaking

// check if minting to a recipient address other than the sender is enabled
// for for the given coin denom
if !sender.Equals(receiver) && !k.bankKeeper.IsSendEnabledCoin(ctx, coin) {
if strSender != strReceiver && !k.bankKeeper.IsSendEnabledCoin(ctx, coin) {
Copy link
Contributor

Choose a reason for hiding this comment

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

sender is eth address while receiver is still cosmos address right?

@aljo242
Copy link
Contributor

aljo242 commented Sep 4, 2025

@yihuang lint and tests failing

@aljo242
Copy link
Contributor

aljo242 commented Sep 15, 2025

Can we add a test that validates this new behavior?

@yihuang yihuang marked this pull request as draft September 16, 2025 06:11
@yihuang
Copy link
Contributor Author

yihuang commented Sep 16, 2025

Can we add a test that validates this new behavior?

I converted it to draft, because I'm getting confused at what exactly what we should do here. On the other hand, the UI can also do the address format conversions.

@vladjdk vladjdk changed the title feat: ibc transfer don't support hex address feat: support address codec in erc20 callbacks Sep 16, 2025
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.

feat: support address codec in erc20 callbacks
4 participants