Skip to content

Commit

Permalink
enable 'Coin Transsfer' transaction type
Browse files Browse the repository at this point in the history
  • Loading branch information
lykalabrada committed Nov 1, 2023
1 parent e6a644f commit 4834b82
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/shared/transactionDataHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ export const getTransactionType = ({
tokenTransfers?.length > 0 ||
(txTypes.includes(RawTransactionType.TokenTransfer) &&
!txTypes.includes(RawTransactionType.ContractCreation));
// const involvesCoinTransfer =
// txTypes.includes(RawTransactionType.CoinTransfer) &&
// !txTypes.includes(RawTransactionType.ContractCreation);
const involvesCoinTransfer =
txTypes.includes(RawTransactionType.CoinTransfer) &&
!txTypes.includes(RawTransactionType.ContractCreation);
const involvesContract = isFromContract || isToContract || createdContract;

if (involvesTokenTransfers) {
Expand All @@ -155,10 +155,9 @@ export const getTransactionType = ({
transactionType = TransactionType.ContractCall;
}
// Display Transaction as tx type for CoinTransfer
// else if (involvesCoinTransfer) {
// transactionType = TransactionType.CoinTransfer;
// }
else {
else if (involvesCoinTransfer) {
transactionType = TransactionType.CoinTransfer;
} else {
transactionType = TransactionType.Transaction;
}

Expand Down

0 comments on commit 4834b82

Please sign in to comment.