ERC20 address is hard coded into frontend code.
if user uses different chain, it will fail trying to access that address with the given ERC20 ABI.
there's probably no other solution other than catching that exception and replacing it with alert or something similar
Btw the backend could serve the correct path to token by using template variables.
ERC20 address is hard coded into frontend code.
if user uses different chain, it will fail trying to access that address with the given ERC20 ABI.
there's probably no other solution other than catching that exception and replacing it with alert or something similar
Btw the backend could serve the correct path to token by using template variables.