Skip to content

Commit

Permalink
fix: storage deposit in mint account tx details (#8368)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl121 authored Apr 12, 2024
1 parent 3570abe commit 2e579f2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ActivityType } from '@core/wallet/enums'
import { IActivityGenerationParameters, IWalletState } from '@core/wallet/interfaces'
import { AccountActivity } from '@core/wallet/types'
import {
getAmountFromOutput,
getAsyncDataFromOutput,
getMetadataFromOutput,
getSendingInformation,
Expand All @@ -24,8 +23,7 @@ export async function generateSingleAccountActivity(
const outputId = wrappedOutput.outputId
const id = outputId || transactionId

const { storageDeposit: _storageDeposit, giftedStorageDeposit } = await getStorageDepositFromOutput(output)
const storageDeposit = getAmountFromOutput(output) + _storageDeposit
const { storageDeposit, giftedStorageDeposit } = await getStorageDepositFromOutput(output)
const accountId = getAccountId(output, outputId)
const accountAddress = AddressConverter.addressToBech32(new AccountAddress(accountId))

Expand Down

0 comments on commit 2e579f2

Please sign in to comment.