checkpoint-labs / checkpoint

Checkpoint is a library for indexing data of Starknet contracts.
https://checkpoint.box
MIT License
55 stars 22 forks source link

fix: handle nested entity id set to null #269

Closed Sekhmet closed 9 months ago

Sekhmet commented 9 months ago

Depends on: https://github.com/checkpoint-labs/checkpoint/pull/268 Addresses: https://github.com/checkpoint-labs/checkpoint/pull/268#issuecomment-1748812601

If nullable entity type's ID field is set to null we should return null on entity.

I'm not sure if it fixed issue with The loader.load() function must be called with a value, but got: undefined. as I couldn't find a way to reproduce.