Skip to content

add checkAndUpdateSingleCollectibleOwnershipStatus method - #669

Merged
adonesky1 merged 2 commits into
mainfrom
add-checkAndUpdateSingleCollectibleOwnershipStatus-method
Dec 27, 2021
Merged

add checkAndUpdateSingleCollectibleOwnershipStatus method#669
adonesky1 merged 2 commits into
mainfrom
add-checkAndUpdateSingleCollectibleOwnershipStatus-method

Conversation

@adonesky1

Copy link
Copy Markdown
Contributor
  • ADDED:

    • Adds a method checkAndUpdateAllCollectiblesOwnershipStatus that can both be used as a helper method for batched updates to the isCurrentlyOwned value of allCollectibles for current selectedAddress/chainId combination, and for ownership status checks and state updates for single collectibles.
@adonesky1
adonesky1 requested a review from a team as a code owner December 22, 2021 17:54
@adonesky1
adonesky1 force-pushed the add-checkAndUpdateSingleCollectibleOwnershipStatus-method branch from bab81eb to f29574c Compare December 22, 2021 17:54
});

describe('checkAndUpdateCollectiblesOwnershipStatus', () => {
it('should check whether collectibles for the current selectedAddress/chainId combination are still owned by the selectedAddress and update the isCurrentlyOwned value to false when collectible is not still owned', async () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff on this file got a bit screwed up again because I added a new layer of describes (one for each of checkAndUpdateAllCollectiblesOwnershipStatus and checkAndUpdateSingleCollectibleOwnershipStatus

@gantunesr gantunesr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@adonesky1
adonesky1 merged commit 28c8434 into main Dec 27, 2021
@adonesky1
adonesky1 deleted the add-checkAndUpdateSingleCollectibleOwnershipStatus-method branch December 27, 2021 19:15
@adonesky1 adonesky1 mentioned this pull request Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants