diff --git a/dapp/src/components/RegisterProject.astro b/dapp/src/components/RegisterProject.astro index d7eb847..8259b20 100644 --- a/dapp/src/components/RegisterProject.astro +++ b/dapp/src/components/RegisterProject.astro @@ -152,6 +152,13 @@ import ModalInput from "./utils/ModalInput.astro"; if (!maintainers.value.trim()) { isValid = false; showError(maintainers, maintainers_error, "Maintainers cannot be empty"); + } else { + const addressList = maintainers.value.split(',').map(addr => addr.trim()); + const invalidAddresses = addressList.filter(addr => !addr.startsWith('G') || addr.length !== 56); + if (invalidAddresses.length > 0) { + isValid = false; + showError(maintainers, maintainers_error, "Invalid maintainer address(es). Each address should start with 'G' and be 56 characters long."); + } } // Check GitHub URL