@nextrope/xrpl
Version:
A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser
13 lines • 551 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateSetRegularKey = void 0;
const errors_1 = require("../../errors");
const common_1 = require("./common");
function validateSetRegularKey(tx) {
(0, common_1.validateBaseTransaction)(tx);
if (tx.RegularKey !== undefined && typeof tx.RegularKey !== 'string') {
throw new errors_1.ValidationError('SetRegularKey: RegularKey must be a string');
}
}
exports.validateSetRegularKey = validateSetRegularKey;
//# sourceMappingURL=setRegularKey.js.map