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