Skip to content

Commit

Permalink
[explorer] fix: Refactor mosaics properties
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLaw committed Jul 25, 2024
1 parent b28d0d4 commit 4c83eb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/infrastructure/AccountService.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,10 @@ class AccountService {

const accountSecretLocks = await LockService.searchSecretLocks(searchCriteria);

const mosaics = accountSecretLocks.data.map(secretlock => new Mosaic(secretlock.mosaicId, secretlock.amount));
const mosaics = accountSecretLocks.data.map(secretlock => ({
mosaicId: secretlock.mosaicId,
transactionLocation: undefined
}));

const { mosaicInfos, mosaicNames, unresolvedMosaicsMap } =
await helper.getMosaicInfoAndNamespace(mosaics);
Expand Down
5 changes: 4 additions & 1 deletion src/infrastructure/ReceiptExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ class ReceiptExtractor {
static balanceChangeReceipt = async transactionStatement => {
let balanceChangeReceipt = [];

const mosaics = transactionStatement.map(statement => new Mosaic(statement.mosaicId, statement.amount));
const mosaics = transactionStatement.map(statement => ({
mosaicId: statement.mosaicId,
transactionLocation: undefined
}));

const { mosaicInfos, mosaicNames, unresolvedMosaicsMap } =
await helper.getMosaicInfoAndNamespace(mosaics);
Expand Down

0 comments on commit 4c83eb4

Please sign in to comment.