Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
restore broadcast operation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexalouit committed Mar 11, 2022
1 parent f05abf7 commit 8bda82c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/families/cosmos/api/Cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import BigNumber from "bignumber.js";
import network from "../../../network";
import { Operation } from "../../../types";
import { patchOperationWithHash } from "../../../operation";
import { log } from "@ledgerhq/logs";
import { toOperationRaw } from "../../../account";

const defaultEndpoint = getEnv(
"API_COSMOS_BLOCKCHAIN_EXPLORER_API_ENDPOINT"
Expand Down Expand Up @@ -283,12 +281,5 @@ export const broadcast = async ({
);
}

const patchedOperation = patchOperationWithHash(
{ ...operation, blockHeight: data.tx_response.height },
data.tx_response.txhash
);

log("info", "debug operation: ", toOperationRaw(patchedOperation));

return patchedOperation;
return patchOperationWithHash(operation, data.tx_response.txhash);
};

0 comments on commit 8bda82c

Please sign in to comment.