Skip to content

Problem: erc20 ibc middleware parse sender incorrectly #770

@yihuang

Description

@yihuang

In x/erc20/keeper/ibc_callbacks.go:

k.addrCodec.StringToBytes(data.Sender)

The addrCodec validates if the address is bech32 with current chain prefix or 0x address, but in ibc packet, the sender address could be bech32 with other chain prefix.

Solution

We can either not decoding sender address at all, or has a custom decoder for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions