From a8c279f080164c40fd413298ff4f7ab2ca33f377 Mon Sep 17 00:00:00 2001 From: Nikita Ruban <64008830+nicky-ru@users.noreply.github.com> Date: Thu, 2 Jan 2025 17:05:14 +0000 Subject: [PATCH] fix: log with elizalogger --- packages/plugin-evm/src/providers/wallet.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugin-evm/src/providers/wallet.ts b/packages/plugin-evm/src/providers/wallet.ts index 852e77f339..0e97a716df 100644 --- a/packages/plugin-evm/src/providers/wallet.ts +++ b/packages/plugin-evm/src/providers/wallet.ts @@ -5,7 +5,7 @@ import { http, } from "viem"; import { privateKeyToAccount } from "viem/accounts"; -import type { IAgentRuntime, Provider, Memory, State, ICacheManager } from "@elizaos/core"; +import { type IAgentRuntime, type Provider, type Memory, type State, type ICacheManager, elizaLogger } from "@elizaos/core"; import type { Address, WalletClient, @@ -91,7 +91,7 @@ export class WalletProvider { const cacheKey = "walletBalance_" + this.currentChain; const cachedData = await this.getCachedData(cacheKey); if (cachedData) { - console.log("Returning cached wallet balance for chain: " + this.currentChain); + elizaLogger.log("Returning cached wallet balance for chain: " + this.currentChain); return cachedData; } @@ -102,7 +102,7 @@ export class WalletProvider { }); const balanceFormatted = formatUnits(balance, 18); this.setCachedData(cacheKey, balanceFormatted); - console.log("Wallet balance cached for chain: ", this.currentChain); + elizaLogger.log("Wallet balance cached for chain: ", this.currentChain); return balanceFormatted; } catch (error) { console.error("Error getting wallet balance:", error);