diff --git a/src/handlers/generate-erc20-permit.ts b/src/handlers/generate-erc20-permit.ts index 9047659..b4c00f2 100644 --- a/src/handlers/generate-erc20-permit.ts +++ b/src/handlers/generate-erc20-permit.ts @@ -151,8 +151,8 @@ async function getTokenDecimals(tokenAddress: string, provider: ethers.providers const tokenContract = new ethers.Contract(tokenAddress, erc20Abi, provider); return await tokenContract.decimals(); } catch (error) { - const errorMessage = `Failed to get token decimals for token: ${tokenAddress}`; - logger.debug(errorMessage); + const errorMessage = `Failed to get token decimals for token: ${tokenAddress}, ${error}`; + logger.debug(errorMessage, { error }); throw new Error(errorMessage); } }