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

SDK - Checksummed address not found #26

Open
Agupane opened this issue Sep 20, 2023 · 0 comments
Open

SDK - Checksummed address not found #26

Agupane opened this issue Sep 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Agupane
Copy link
Member

Agupane commented Sep 20, 2023

Description

  • If you try to fetch information about users:
wait sdk.users.getByAddress(address);

It will fail in case that the address given is checksummed, if we send it everything as lowercased it works though.
The SDK should accept checksummed and not checksummed addresses and return the same response

Example:

address: 0x0dc0dfD22C6Beab74672EADE5F9Be5234AAa43cC

Not works, this is the return:

user: null

But this one works:

address: 0x0dc0dfd22c6beab74672eade5f9be5234aaa43cc

returns:

{
  id: '0x0dc0dfd22c6beab74672eade5f9be5234aaa43cc',
  isCreator: true,
  metadataUri: 'ipfs://Qmcgysc66wKcWn6qEiVREPqpfXyb2rrsW948UP5PHbPzXW',
  statistics: {
    mintedBadgesAmount: '1',
    creatorStatistic: { createdBadgeModelsAmount: '1' }
  },
  badges: [ { id: '0' } ]
} 

@Agupane Agupane added the bug Something isn't working label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant