Skip to content

Commit

Permalink
fix: faucet webpage rejects valid account IDs (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig authored Jan 29, 2025
1 parent 9a75776 commit 244eba1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@

## Unreleased

## v0.7.2 (2025-01-29)

### Fixes

- Faucet webpage rejects valid account IDs (#655).

## v0.7.1 (2025-01-28)

### Fixes

- Faucet webpage fails to load styling (index.css) and script (index.js) (#647).

### Changes

- [BREAKING] Default faucet endpoint is now public instead of localhost (#647).
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resolver = "2"
[workspace.package]
edition = "2021"
rust-version = "1.82"
version = "0.7.1"
version = "0.7.2"
license = "MIT"
authors = ["Miden contributors"]
homepage = "https://polygon.technology/polygon-miden"
Expand Down
2 changes: 1 addition & 1 deletion bin/faucet/src/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ document.addEventListener('DOMContentLoaded', function () {
let accountId = accountIdInput.value.trim();
errorMessage.style.display = 'none';

if (!accountId || !/^0x[0-9a-fA-F]{16}$/i.test(accountId)) {
if (!accountId || !/^0x[0-9a-fA-F]{30}$/i.test(accountId)) {
errorMessage.textContent = !accountId ? "Account ID is required." : "Invalid Account ID.";
errorMessage.style.display = 'block';
return;
Expand Down

0 comments on commit 244eba1

Please sign in to comment.