From 4ef590469875474237499163bede5e6cc20c0ee5 Mon Sep 17 00:00:00 2001 From: wa-aal <93649819+wa-aal@users.noreply.github.com> Date: Wed, 9 Mar 2022 17:25:03 +0100 Subject: [PATCH] Cosmos JS (#1796) * be more conform between optimistic and final operation * use old code logic * fix senders/recipients regression * fix duplicate data * fix duplicate data (again) * append block height Co-authored-by: Alexandre Alouit --- src/families/cosmos/api/Cosmos.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/families/cosmos/api/Cosmos.ts b/src/families/cosmos/api/Cosmos.ts index 04190c2517..5d9e0127f3 100644 --- a/src/families/cosmos/api/Cosmos.ts +++ b/src/families/cosmos/api/Cosmos.ts @@ -246,7 +246,10 @@ export const broadcast = async ({ ); } - return patchOperationWithHash(operation, data.tx_response.txhash); + return patchOperationWithHash( + { ...operation, blockHeight: data.tx_response.height }, + data.tx_response.txhash + ); }; export const getBlock = async (height: number): Promise => {