File tree 2 files changed +4
-9
lines changed
packages/plugin-avalanche/src/utils
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const getAccount = (runtime: IAgentRuntime) => {
20
20
return privateKeyToAccount ( `0x${ privateKey . replace ( "0x" , "" ) } ` ) ;
21
21
} ;
22
22
23
- export const getPublicClient = ( runtime : IAgentRuntime ) => {
23
+ export const getPublicClient = ( _runtime : IAgentRuntime ) => {
24
24
return createPublicClient ( {
25
25
chain : avalanche ,
26
26
transport : http ( ) ,
@@ -351,7 +351,7 @@ export const swap = async (
351
351
try {
352
352
const account = getAccount ( runtime ) ;
353
353
const publicClient = getPublicClient ( runtime ) ;
354
- const { result , request } = await publicClient . simulateContract ( {
354
+ const { _result , request } = await publicClient . simulateContract ( {
355
355
account : account ,
356
356
address : YAK_SWAP_CONFIG . router ,
357
357
abi : [
@@ -426,7 +426,7 @@ export const deposit = async (
426
426
try {
427
427
const decimals = await getDecimals ( runtime , depositTokenAddress ) ;
428
428
const publicClient = getPublicClient ( runtime ) ;
429
- const { result , request } = await publicClient . simulateContract ( {
429
+ const { _result , request } = await publicClient . simulateContract ( {
430
430
account : getAccount ( runtime ) ,
431
431
address : strategyAddress ,
432
432
abi : [
Original file line number Diff line number Diff line change 1
- import {
2
- getAccount ,
3
- getWalletClient ,
4
- getTxReceipt ,
5
- getPublicClient ,
6
- } from "./index" ;
1
+ import { getAccount , getWalletClient , getPublicClient } from "./index" ;
7
2
import { TOKEN_ADDRESSES , TOKEN_MILL_CONFIG } from "./constants" ;
8
3
import { IAgentRuntime } from "@elizaos/core" ;
9
4
import { TokenMillMarketCreationParameters } from "../types" ;
You can’t perform that action at this time.
0 commit comments