-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make testnet faucet page more efficient by adding input validation #259 #331
Conversation
feat: testnet faucet for evm only
✅ Deploy Preview for telos-app-native-mainnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for telos-app-native-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There are 2 supported public key formats, might be good to accept either one? Note here: https://explorer.telos.net/account/jessetest123?tab=keys You can click the key icon to toggle between the two formats (EOS vs PUB_K1 prefixed) |
I have added support for both public key format please check |
Looks good to me! |
Could you do review again? |
Make testnet faucet page more efficient by adding input validation #259
Description
I have disabled the button until valid input is given and included a computed property isCreateAccountButtonDisabled that checks for valid input conditions. If any of the input fields are empty or if the Telos owner key doesn't match the specified pattern, the button will remain disabled. This helps ensure that the button is only enabled when valid input is provided, addressing the issue
Test scenarios
The test scenarios included verifying the button's disabled state under different conditions. Initially, the button remained enabled despite invalid or empty input. After the code changes, the button correctly disables when any input field is blank or when invalid input is provided for the Telos owner key and active key. The validation ensures that the "Create testnet account" button is only clickable when valid input is provided.
Checklist:
Screenshot