mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 11:55:50 +00:00
Added status check in .toml file handling
This commit is contained in:
@@ -57,6 +57,14 @@ async function verifyAccountDomain(accountData) {
|
||||
const domain = convertHexToString(domainHex)
|
||||
const tomlUrl = `https://${domain}/.well-known/xrp-ledger.toml`
|
||||
const tomlResponse = await fetch(tomlUrl)
|
||||
|
||||
if (!tomlResponse.ok) {
|
||||
return {
|
||||
domain: domain,
|
||||
verified: false
|
||||
}
|
||||
}
|
||||
|
||||
const tomlData = await tomlResponse.text()
|
||||
const parsedToml = toml.parse(tomlData)
|
||||
const tomlAccounts = parsedToml["ACCOUNTS"]
|
||||
|
||||
Reference in New Issue
Block a user