Skip to content

Commit

Permalink
feat: detect assign for new punks
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyjackal committed Mar 4, 2024
1 parent 35ed3c3 commit 151ce7d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/transformers/ethereum/assetTransfersCryptopunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 151ce7d

Please sign in to comment.