Skip to content

Commit

Permalink
Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Nov 11, 2021
1 parent efcbde7 commit 4ac8b62
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,13 @@ export async function rawGetTransactions(
?.get(rewardAddr.payment_cred());
// happens if the MIR is to another pot
if (rewardAmount == null) continue;
const rewardAmountStr = rewardAmount.is_positive()
? rewardAmount.as_positive().to_str()
: ('-' + rewardAmount.as_negative().to_str());
const isPositive = rewardAmount.is_positive();
const rewardAmountBigInt = isPositive
? rewardAmount.as_positive()
: rewardAmount.as_negative();
if (rewardAmountBigInt == null) continue;
const rewardAmountStr =
(isPositive ? '' : '-') + rewardAmountBigInt.to_str();
implicitOutputSum.add({
identifier: defaultToken.defaultIdentifier,
networkId: defaultToken.defaultNetworkId,
Expand Down

0 comments on commit 4ac8b62

Please sign in to comment.