harmony-one / ethhmy-bridge.frontend

Ethereum<>Harmony two way bridge (trusted version) - frontend part
25 stars 62 forks source link

User selecting HRC20 for returning their ERC20 mistake is not prevented #80

Open gupadhyaya opened 3 years ago

gupadhyaya commented 3 years ago
Screen Shot 2021-03-16 at 9 48 30 PM

When a user mistakenly selects HRC20 for returning their ERC20 from Harmony to Ethereum, it is not prevented. I think the mapping check does not work here in this case, because the mappings are always one way: ERC20TokenAddr to HRC20TokenAddr. When the user selects HRC20, he inputs HRC20TokenAddr and the mapping check does not find any mapping, hence the check fails, resulting in mistake.