mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
fix more things
This commit is contained in:
@@ -81,15 +81,21 @@ export function validateXChainAddAttestation(
|
||||
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- known to be this */
|
||||
const attestationBatch = tx.XChainAttestationBatch as Record<string, unknown>
|
||||
|
||||
if (attestationBatch.XChainBridge == null) {
|
||||
throw new ValidationError(
|
||||
'XChainAddAttestation: missing field XChainAttestationBatch.XChainBridge',
|
||||
)
|
||||
}
|
||||
|
||||
if (attestationBatch.XChainClaimAttestationBatch == null) {
|
||||
throw new ValidationError(
|
||||
'XChainAddAttestation: missing field XChainClaimAttestationBatch',
|
||||
'XChainAddAttestation: missing field XChainAttestationBatch.XChainClaimAttestationBatch',
|
||||
)
|
||||
}
|
||||
|
||||
if (attestationBatch.XChainCreateAccountAttestationBatch == null) {
|
||||
throw new ValidationError(
|
||||
'XChainAddAttestation: missing field XChainCreateAccountAttestationBatch',
|
||||
'XChainAddAttestation: missing field XChainAttestationBatch.XChainCreateAccountAttestationBatch',
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user