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