diff --git a/src/handlers/evm/utils.ts b/src/handlers/evm/utils.ts index 0e9ac8c..acd8731 100644 --- a/src/handlers/evm/utils.ts +++ b/src/handlers/evm/utils.ts @@ -46,11 +46,17 @@ export class Utils { throw new Error(`Insufficient funds for account: ${sender} on chain ${fromChain.chainId}`); } + let tokenSymbol; + + try { + tokenSymbol = await (fromTokenContract as Contract).symbol(); + } catch (error) { + console.error("failed to get token symbol"); + } + return { isApproved: true, - message: `User has the expected balance ${amount} of ${await ( - fromTokenContract as Contract - ).symbol()}`, + message: `User has the expected balance ${amount} of ${tokenSymbol}`, }; }