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

Cosmos JS #1799

Merged
13 commits merged into from Mar 10, 2022
Merged
7 changes: 5 additions & 2 deletions src/families/cosmos/js-synchronisation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ const txToOps = (info: any, id: string, txs: any): Operation[] => {

case "withdraw_rewards":
if (
attributes.amount &&
attributes.amount.indexOf(currency.units[1].code) != -1
(attributes.amount &&
attributes.amount.indexOf(currency.units[1].code) != -1) ||
// handle specifc case with empty amount value like
// tx DF458FE6A82C310837D7A33735FA5298BCF71B0BFF7A4134641AAE30F6F1050
attributes.amount === ""
) {
op.type = "REWARD";
op.value = new BigNumber(fees);
Expand Down