Skip to content

fix(riskTierClient): remove erroneous horizonServer constant and clos…#81

Open
Div1912 wants to merge 1 commit into
mericcintosun:mainfrom
Div1912:fix/risktierclient-malformed-jsdoc-and-wrong-server-class
Open

fix(riskTierClient): remove erroneous horizonServer constant and clos…#81
Div1912 wants to merge 1 commit into
mericcintosun:mainfrom
Div1912:fix/risktierclient-malformed-jsdoc-and-wrong-server-class

Conversation

@Div1912

@Div1912 Div1912 commented Apr 30, 2026

Copy link
Copy Markdown

Summary

Two bugs fixed in src/lib/riskTierClient.ts:

Bug 1 ## Summary

Two bugs fixed in src/lib/riskTierClient.ts:

Bug 1 - Wrong server class used for horizonServer

horizonServer on line 29 was instantiated with the Soroban RPC Server class (imported from @stellar/stellar-sdk/rpc), not with Horizon.Server. This would return incorrect data if the variable were ever used for Horizon account queries. Since the variable is also unused (account loading already happens correctly inside resolveSourceAccount() via a local new Horizon.Server(...) call), it has been removed entirely to prevent future misuse.

Bug 2 - Unclosed JSDoc comment block

The JSDoc block starting at line 149 was never closed - the */ was missing before the // --- Contract Client section separator. This caused TypeScript (in strict mode) and all documentation generators to parse the next /** ... */ block as a continuation of the same malformed comment. The missing */ has been added.

Files Changed

  • src/lib/riskTierClient.ts

Testing

  • Confirm TypeScript compiles without errors: npx tsc --noEmit

@vercel

vercel Bot commented Apr 30, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the mericcintosun Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant