Skip to content

Commit

Permalink
Revert "[FeatFix] fix method name burn for nft detail"
Browse files Browse the repository at this point in the history
This reverts commit ff8b07f.
  • Loading branch information
tamvb2391 committed Jun 11, 2024
1 parent ff8b07f commit 3ca1ca4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/app/pages/evm-token/evm-nft-detail/evm-nft-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,21 +217,11 @@ export class EvmNFTDetailComponent implements OnInit {
return this.transactionService.getListMappingName(listMethodId).pipe(
map((element) => {
if (erc721Activities?.length > 0) {
return erc721Activities.map((tx, idx) => {
return erc721Activities.map((tx) => {
const methodId = _.get(tx, 'evm_transaction.data')?.substring(0, 8);
let methodType = mappingMethodName(element, methodId);

if (methodType === 'Burn') {
if (idx > 0 && erc721Activities[idx - 1].tempType === 'Burn') {
methodType = 'Approval';
} else {
methodType = 'Transfer';
tx.tempType = 'Burn';
}
}
return {
...tx,
type: methodType,
type: mappingMethodName(element, methodId),
};
});
}
Expand Down

0 comments on commit 3ca1ca4

Please sign in to comment.