Skip to content

Commit

Permalink
fix: log with elizalogger
Browse files Browse the repository at this point in the history
  • Loading branch information
nicky-ru authored and monilpat committed Jan 2, 2025
1 parent d4831c8 commit a8c279f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugin-evm/src/providers/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -91,7 +91,7 @@ export class WalletProvider {
const cacheKey = "walletBalance_" + this.currentChain;
const cachedData = await this.getCachedData<string>(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;
}

Expand All @@ -102,7 +102,7 @@ export class WalletProvider {
});
const balanceFormatted = formatUnits(balance, 18);
this.setCachedData<string>(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);
Expand Down

0 comments on commit a8c279f

Please sign in to comment.