Skip to content

Commit

Permalink
Properly beautify op 45 (#276)
Browse files Browse the repository at this point in the history
debtCovered changed to debt_covered
prompt now triggers as expected
  • Loading branch information
grctest authored Jan 1, 2024
1 parent a1de23c commit 2fc31f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/lib/blockchains/BitShares.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@ export default class BitShares extends BlockchainAPI {
"asset_to_withdraw.asset_id",
"amount_to_claim.asset_id",
"additional_collateral.asset_id",
"debtCovered.asset_id",
"debt_covered.asset_id",
"amount_for_new_target.asset_id",
"asset_a",
"asset_b",
Expand Down
13 changes: 3 additions & 10 deletions src/lib/blockchains/bitshares/beautify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2606,16 +2606,9 @@ export default async function beautify(
}
} else if (opType == 45) {
// bid_collateral
let bidder = accountResults.find(
(resAcc) => resAcc.id === opContents.bidder
).accountName;
let collateral = assetResults.find(
(assRes) => assRes.id === opContents.additional_collateral.asset_id
);
let debtCovered = assetResults.find(
(assRes) => assRes.id === opContents.debtCovered.asset_id
);

let bidder = accountResults.find((resAcc) => resAcc.id === opContents.bidder).accountName;
let collateral = assetResults.find((assRes) => assRes.id === opContents.additional_collateral.asset_id);
let debtCovered = assetResults.find((assRes) => assRes.id === opContents.debt_covered.asset_id);
let _feeAsset = assetResults.find(
(assRes) => assRes.id === opContents.fee.asset_id
);
Expand Down

0 comments on commit 2fc31f4

Please sign in to comment.