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

fix(pods): fix simulation errors when no tokenId is provided [BOOST-4097] #448

Merged
merged 9 commits into from
Jun 12, 2024

Conversation

mmackz
Copy link
Collaborator

@mmackz mmackz commented Jun 11, 2024

Previously this would receive an error when no tokenId was provided due to their not being a certain function nextTokenId not being available on the ABI.

There can still be issues if the latest tokenId is not in a mintable state.

fixes BOOST-4097

  • change tests to use mocks

@mmackz mmackz requested a review from a team as a code owner June 11, 2024 17:25
Copy link

changeset-bot bot commented Jun 11, 2024

🦋 Changeset detected

Latest commit: 1b7f211

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@rabbitholegg/questdk-plugin-pods Minor
@rabbitholegg/questdk-plugin-registry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mmackz mmackz marked this pull request as draft June 11, 2024 17:29
@mmackz mmackz marked this pull request as ready for review June 11, 2024 17:47
Copy link
Member

@Quazia Quazia left a comment

Choose a reason for hiding this comment

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

LGTM - it is getting the most recent token ID now. As a follow-on if we see more fails I still think it would make sense to iterate through the tokenIds when the simulate fails and tokenId hasn't been set but we can pull that lever based on subsequent issues SG?

expect(fee.projectFee).toEqual(parseEther('0'))
expect(fee.actionFee).toEqual(parseEther('0.0007'))

// const { actionFee, projectFee } = await getFees(mintParams)
Copy link
Member

Choose a reason for hiding this comment

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

Cleanup

@mmackz mmackz merged commit 5dc0635 into main Jun 12, 2024
9 checks passed
@mmackz mmackz deleted the mmackz/pods-simulate branch July 2, 2024 16:24
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