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

Pass correct response type to getConfirmedSignaturesForAddress2 request #101

Merged

Conversation

esen
Copy link
Contributor

@esen esen commented Aug 30, 2022

Description

  • When trying to use a response of getConfirmedSignaturesForAddress2 request for the address it throws java.lang.ClassCastException: com.squareup.moshi.LinkedHashTreeMap cannot be cast to com.solana.models.SignatureInformation

Work Completed

  • Pass Types.newParameterizedType(List::class.java, SignatureInformation::class.java) to router.request method, to define the type of elements of the list

Testing

  • Tested in the sample app

@ajamaica
Copy link
Contributor

ajamaica commented Sep 2, 2022

Thank you very very much.

@ajamaica ajamaica merged commit 9aae3a1 into metaplex-foundation:master Sep 2, 2022
@esen esen deleted the fix_get_confirmed_signatures branch September 6, 2022 04:34
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.

2 participants