icon-project / icon-bridge

The centralized bridge of ICON
Apache License 2.0
21 stars 15 forks source link

Unable to parse actual address from lowercase string in inter-chain messaging #869

Open Suyog007 opened 1 year ago

Suyog007 commented 1 year ago

https://github.com/icon-project/icon-bridge/blob/main/javascore/bts/src/main/java/foundation/icon/btp/bts/BTPTokenService.java#L292

In the code snippet provided above, we observe that the address within a string of another chain is being converted to lowercase and subsequently sent as a message to a different chain. However, it is important to note that not all chains are capable of retrieving the actual address from these lowercase string representations. Certain chains may encounter difficulties parsing the address from these lowercase strings.

Considering the potential issues arising from this situation, it is imperative to find a suitable solution. Lowercasing all strings is not a viable option, as it would introduce unintended consequences in other aspects of the system.

It would be beneficial to investigate alternative approaches that allow for the successful retrieval of the original address by all chains, regardless of the case sensitivity.