"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateXChainCommit = void 0;
const errors_1 = require("../../errors");
const common_1 = require("./common");
function validateXChainCommit(tx) {
    (0, common_1.validateBaseTransaction)(tx);
    if (tx.XChainBridge == null) {
        throw new errors_1.ValidationError('XChainCommit: missing field XChainBridge');
    }
    if (tx.XChainClaimID == null) {
        throw new errors_1.ValidationError('XChainCommit: missing field XChainClaimID');
    }
    if (tx.Amount == null) {
        throw new errors_1.ValidationError('XChainCommit: missing field Amount');
    }
}
exports.validateXChainCommit = validateXChainCommit;
//# sourceMappingURL=XChainCommit.js.map