Skip to content

Commit cd1413d

Browse files
committed
fix: unused variable
1 parent c9a93e8 commit cd1413d

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

packages/plugin-avalanche/src/utils/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const getAccount = (runtime: IAgentRuntime) => {
2020
return privateKeyToAccount(`0x${privateKey.replace("0x", "")}`);
2121
};
2222

23-
export const getPublicClient = (runtime: IAgentRuntime) => {
23+
export const getPublicClient = (_runtime: IAgentRuntime) => {
2424
return createPublicClient({
2525
chain: avalanche,
2626
transport: http(),
@@ -351,7 +351,7 @@ export const swap = async (
351351
try {
352352
const account = getAccount(runtime);
353353
const publicClient = getPublicClient(runtime);
354-
const { result, request } = await publicClient.simulateContract({
354+
const { _result, request } = await publicClient.simulateContract({
355355
account: account,
356356
address: YAK_SWAP_CONFIG.router,
357357
abi: [
@@ -426,7 +426,7 @@ export const deposit = async (
426426
try {
427427
const decimals = await getDecimals(runtime, depositTokenAddress);
428428
const publicClient = getPublicClient(runtime);
429-
const { result, request } = await publicClient.simulateContract({
429+
const { _result, request } = await publicClient.simulateContract({
430430
account: getAccount(runtime),
431431
address: strategyAddress,
432432
abi: [

packages/plugin-avalanche/src/utils/tokenMill.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
getAccount,
3-
getWalletClient,
4-
getTxReceipt,
5-
getPublicClient,
6-
} from "./index";
1+
import { getAccount, getWalletClient, getPublicClient } from "./index";
72
import { TOKEN_ADDRESSES, TOKEN_MILL_CONFIG } from "./constants";
83
import { IAgentRuntime } from "@elizaos/core";
94
import { TokenMillMarketCreationParameters } from "../types";

0 commit comments

Comments
 (0)