@johnversus do we need to update code here
async function checkToken(...args) {
if (token_address && token_address.length == 42) {
token_loading = true;
token_error = false;
await checkTokenAddress(token_address)
.then(async (exists) => {
if (exists) {
token_loading = false;
token_already_used = true;
setTimeout(() => {
token_already_used = false;
}, 3000);
} else {
try {
token_already_used = false;
const metadata = await getTokenMetadata(token_address, chainId);
token_metadata = metadata[0];
token_loading = false;
} catch (error) {
console.log(error)
token_loading = false;
token_error = true;
}
}
})
.catch((error) => {
// console.log("Error occurred while checking token address: ", error);
});
} else {
token_metadata = null;
}
}
in catch block while console then itβs showing the error
catch (error) {
console.log(error)