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

Remove dependency on requestAll #52

Merged
merged 3 commits into from
Feb 15, 2024
Merged

Remove dependency on requestAll #52

merged 3 commits into from
Feb 15, 2024

Conversation

JST5000
Copy link
Contributor

@JST5000 JST5000 commented Feb 15, 2024

High Level Overview of Change

Faucet was unable to get tickets due to requestAll always returning 0 tickets even when the faucet account had tickets.

Context of Change

There was a bug where the testnet faucet couldn't tell how many tickets it had because Client.requestAll was not working properly. This will be fixed in a future version of xrpl.js, but for now we're removing that dependency in the faucet.

Also updated the README's testing steps.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation Updates

Test Plan

  • Manually verified that the testnet faucet could accurately count how many tickets were in the testnet faucet account (before fix -> 0, after fix -> 219)
  • Also verified that it still could make accounts + refill tickets in a "normal" situation (account with not that many objects)

@JST5000 JST5000 requested review from intelliot and mvadari February 15, 2024 23:12
Copy link
Contributor

@intelliot intelliot left a comment

Choose a reason for hiding this comment

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

I didn't test it but it looks good

src/ticket-queue.ts Outdated Show resolved Hide resolved
@JST5000 JST5000 merged commit 95d6e42 into master Feb 15, 2024
1 check passed
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.

3 participants