Skip to content

Commit

Permalink
Merge branch 'sprint-40' into feat/backend-integration-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelLZPF authored Apr 4, 2024
2 parents 4c630f3 + c762f79 commit e245cef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions sdk/src/app/service/TransactionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
TokenUpdateTransaction,
CustomFractionalFee,
CustomFixedFee,
TransferTransaction,
} from '@hashgraph/sdk';
import { MirrorNodeAdapter } from '../../port/out/mirror/MirrorNodeAdapter.js';
import {
Expand Down Expand Up @@ -279,6 +280,16 @@ export default class TransactionService extends Service {

return `Updating token ${tokenId} name : ${tokenName}, symbol : ${tokenSymbol}, autoRenewPeriod : ${autoRenewPeriod}, expirationTime : ${expirationTime},
kycKey : ${kycKey}, freezeKey : ${freezeKey}, feeScheduleKey : ${feeScheduleKey}, pauseKey : ${pauseKey}, wipeKey : ${wipeKey}`;
} else if (t instanceof TransferTransaction) {
let message = '';
const tokenTransfers = (t as TransferTransaction)
.tokenTransfers;
for (const key of tokenTransfers.keys()) {
const tokenTransfer = tokenTransfers.get(key);
message = message + tokenTransfer?.toString() + ', ';
}

return message;
}

return 'No description found....';
Expand Down
4 changes: 3 additions & 1 deletion sdk/src/port/out/backend/BackendAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ export class BackendAdapter {
throw error;
} else {
throw new BackendError(
`Failed to get transactions for ${publicKey}: Unknown error`,
`Failed to get transactions for ${publicKey}, ${page}, ${limit}, ${status}, ${network}, ${accountId}: ${
(error as Error).message
}`,
);
}
}
Expand Down

0 comments on commit e245cef

Please sign in to comment.