Skip to content

Conversation

@ijusttookadnatest
Copy link
Contributor

No description provided.

@ijusttookadnatest ijusttookadnatest marked this pull request as ready for review November 19, 2025 13:31
return result;
return {
status: 'success',
data: result,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this returns a toolResult wrapped inside another toolResult
Same behavior exists in withdrawService.ts

params: WithdrawParams,
env: onchainWrite
): Promise<WithdrawResult> {
async withdrawEarnTransaction(params: WithdrawParams, env: onchainWrite) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a return type Promise<toolResult>

} from '../../lib/types/index.js';
import { apiGet } from '../../lib/utils/api.js';
import { GetUserAccountInfoSchema } from '../../schemas/index.js';
import { toolResult } from '@kasarlabs/ask-starknet-core';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead import the same dead import also exists in packages/mcps/extended/src/tools/read/

import { ERC20_ABI } from '../lib/abis/erc20Abi.js';
import { Router } from 'fibrous-router-sdk';
import { BigNumber } from '@ethersproject/bignumber';
import { toolResult } from '@kasarlabs/ask-starknet-core';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead import the same dead import also exists in packages/mcps/fibrous/src/tools/fetchRoute.ts & packages/mcps/fibrous/src/tools/fetchTokens.ts

@ijusttookadnatest ijusttookadnatest merged commit 4c8db8d into main Nov 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants