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

check canonical denom #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

toshihiko-okubo
Copy link
Member

@toshihiko-okubo toshihiko-okubo commented Dec 6, 2023

There was no mention of LowerCase for PortId in the ibc spec, and since UpperCase was allowed in ibc-go, only the contract address is converted to LowerCase when the prefix is present.

Signed-off-by: Toshihiko Okubo <toshihiko.okubo@datachain.jp>
}

return strings.Join(
append(identifiers[0:len(identifiers)-1], strings.ToLower(identifiers[len(identifiers)-1])),
Copy link
Collaborator

@siburu siburu Dec 11, 2023

Choose a reason for hiding this comment

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

@toshihiko-okubo You need to check if the last element is in hex format.

Plus, I think that IsHexAddress is not enough.
ibc-solidity uses 0x as prefix, but IsHexAddress also accepts 0X.

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.

3 participants