Skip to content

Commit

Permalink
pass detail level
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelsoup42 committed Nov 13, 2023
1 parent 661ff80 commit facb80d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ def _transaction_balance(
self,
transaction: blockfrost.utils.Namespace,
raw_values: bool,
detail_level: int,
) -> Any:
result: MutableMapping[Tuple, np.longlong] = defaultdict(lambda: np.longlong(0))
result[(self.ADA_ASSET, self.OTHER_LABEL, " fees")] += np.longlong(
Expand Down Expand Up @@ -500,7 +501,10 @@ def _transaction_balance(
def make_balance_frame(self, with_total: bool, raw_values: bool, detail_level: int):
"""Make DataFrame with transaction balances."""
balance = pd.DataFrame(
data=[self._transaction_balance(x, raw_values) for x in self.transactions],
data=[
self._transaction_balance(x, raw_values, detail_level)
for x in self.transactions
],
index=self.transactions.index,
dtype="Int64",
)
Expand Down

0 comments on commit facb80d

Please sign in to comment.