@ledgerhq/coin-mina
Version:
11 lines • 513 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const operation_1 = require("@ledgerhq/coin-framework/operation");
const api_1 = require("../api");
const broadcast = async ({ signedOperation: { signature, operation }, }) => {
const signedPayload = JSON.parse(signature);
const hash = await (0, api_1.broadcastTransaction)(signedPayload);
return (0, operation_1.patchOperationWithHash)(operation, hash);
};
exports.default = broadcast;
//# sourceMappingURL=broadcast.js.map