Skip to content

Commit

Permalink
Update packages/plugin-navi/src/providers/wallet.ts
Browse files Browse the repository at this point in the history
Co-authored-by: codefactor-io[bot] <47775046+codefactor-io[bot]@users.noreply.github.com>
  • Loading branch information
lispking and codefactor-io[bot] authored Feb 10, 2025
1 parent c21bc68 commit b8cd80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-navi/src/providers/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class WalletProvider {
}

async depositToNavi(token: string, amount: number): Promise<any> {

Check warning on line 36 in packages/plugin-navi/src/providers/wallet.ts

View check run for this annotation

codefactor.io / CodeFactor

packages/plugin-navi/src/providers/wallet.ts#L36

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)
let coinType = this.token2coinType(token);
const coinType = this.token2coinType(token);

Check warning on line 37 in packages/plugin-navi/src/providers/wallet.ts

View check run for this annotation

codefactor.io / CodeFactor

packages/plugin-navi/src/providers/wallet.ts#L37

'coinType' is never reassigned. Use 'const' instead. (prefer-const)
return this.client.account.depositToNavi(coinType, amount)
}

Expand Down

0 comments on commit b8cd80b

Please sign in to comment.