@ledgerhq/coin-aptos
Version:
Ledger Aptos Coin integration
12 lines • 553 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const operation_1 = require("@ledgerhq/coin-framework/operation");
const network_1 = require("../network");
const broadcast = async ({ signedOperation, account }) => {
const { signature, operation } = signedOperation;
const client = new network_1.AptosAPI(account.currency.id);
const hash = await client.broadcast(signature);
return (0, operation_1.patchOperationWithHash)(operation, hash);
};
exports.default = broadcast;
//# sourceMappingURL=broadcast.js.map