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

Warn that only devnet has a faucet #606

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

banool
Copy link
Contributor

@banool banool commented Dec 13, 2024

Description

We removed the testnet faucet, we should warn users about this where possible.

It'd be nice to remove testnet and mainnet frrom NetworkToFaucetAPI completely but it seems like that'd be a fairly large change.

Test Plan

Let's see how CI goes.

Related Links

Checklist

  • Have you ran pnpm fmt?
  • Have you updated the CHANGELOG.md?

@banool banool requested a review from a team as a code owner December 13, 2024 18:07
Copy link
Collaborator

@0xmaayan 0xmaayan left a comment

Choose a reason for hiding this comment

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

With the recent faucet changes, we should take care of when initializing Aptos with Testnet and then try to fund an account with aptos.fundAccount()

@banool banool force-pushed the banool/warn-devnet-faucet branch from 9006355 to 9551946 Compare December 13, 2024 18:27
@banool
Copy link
Contributor Author

banool commented Dec 13, 2024

I just added custom error messages to getRequestUrl if you try to get a testnet or mainnet faucet URL.

@banool banool force-pushed the banool/warn-devnet-faucet branch 2 times, most recently from 97fc235 to 57eb052 Compare December 13, 2024 18:31
@banool banool force-pushed the banool/warn-devnet-faucet branch from 57eb052 to 3ddefa7 Compare December 13, 2024 19:22
@banool banool enabled auto-merge (rebase) December 13, 2024 19:25
@banool banool disabled auto-merge December 16, 2024 17:33
@banool
Copy link
Contributor Author

banool commented Dec 16, 2024

The test failure is unrelated, I'm going to land.

@banool banool merged commit 00a85ff into main Dec 16, 2024
12 of 14 checks passed
@banool banool deleted the banool/warn-devnet-faucet branch December 16, 2024 17:33
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