@airgap/etherlink
Version:
The @airgap/etherlink package is an implementation of the ICoinProtocol interface from @airgap/coinlib-core.
23 lines • 915 B
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.newSignedTransaction = exports.newUnsignedTransaction = void 0;
function newUnsignedTransaction(transaction) {
return __assign(__assign({}, transaction), { type: 'unsigned' });
}
exports.newUnsignedTransaction = newUnsignedTransaction;
function newSignedTransaction(transaction) {
return __assign(__assign({}, transaction), { type: 'signed' });
}
exports.newSignedTransaction = newSignedTransaction;
//# sourceMappingURL=transaction.js.map