From 151ce7d505ecb71d59d0136dca78d45ed2095663 Mon Sep 17 00:00:00 2001 From: ponyjackal Date: Mon, 4 Mar 2024 10:36:39 -0800 Subject: [PATCH] feat: detect assign for new punks --- .../ethereum/assetTransfersCryptopunks.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/transformers/ethereum/assetTransfersCryptopunks.ts b/src/transformers/ethereum/assetTransfersCryptopunks.ts index b3da910..e45fb8e 100644 --- a/src/transformers/ethereum/assetTransfersCryptopunks.ts +++ b/src/transformers/ethereum/assetTransfersCryptopunks.ts @@ -52,15 +52,13 @@ function updateTokenTransfers(tx: RawTransaction) { }); break; case TRANSFER_SIGNATURES.CRYPTO_PUNKS_ERC721_ASSIGN: - if (log.address === KNOWN_ADDRESSES.CryptoPunksOld) { - cryptopunksTransfers.push({ - asset: log.address, - from: KNOWN_ADDRESSES.NULL, - to: decodeEVMAddress(log.topics[1]), - tokenId: BigInt(log.data).toString(), - type: AssetType.ERC721, - }); - } + cryptopunksTransfers.push({ + asset: log.address, + from: KNOWN_ADDRESSES.NULL, + to: decodeEVMAddress(log.topics[1]), + tokenId: BigInt(log.data).toString(), + type: AssetType.ERC721, + }); break; default: break;