Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis of LIQUIDITY_POOL_SHARES type assets in AccountResponse.balance cannot obtain LiquidityPoolID #375

Closed
shenhao217 opened this issue Nov 4, 2021 · 2 comments · Fixed by #379
Assignees
Labels

Comments

@shenhao217
Copy link

Hello,The reason is that AccountResponse is being parsed. Balance corresponds to SerializedName without liquidity_pool_id

@shenhao217 shenhao217 added the bug label Nov 4, 2021
@sreuland
Copy link
Contributor

Hello,The reason is that AccountResponse is being parsed. Balance corresponds to SerializedName without liquidity_pool_id

Hello @shenhao217 , can you provide client code excerpt showing the sdk invocation which lacks LiquidityPoolID, i.e. is it AccountReponse.Balance.getLiquidityPoolID() or pertaining to the Asset returned from AccountReponse.Balance.getAsset() ?

@sreuland sreuland self-assigned this Nov 10, 2021
@shenhao217
Copy link
Author

Hello, thank you for your attention. This is when I call the client code AccountReponse.Balance.getLiquidityPoolID().get(), but the returned LiquidityPoolID object is empty, resulting in an IllegalStateException being thrown. The AccountReponse.Balance object except for LiquidityPool I can't get other attributes, which makes me have to add the attribute of SerializedName as liquidity_pool_id to the object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants