Skip to content

Commit

Permalink
revert get_nft_content
Browse files Browse the repository at this point in the history
  • Loading branch information
shuva10v committed Jan 21, 2025
1 parent b698c71 commit eee168c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions parser/parsers/accounts/nfts_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ def _do_parse(self, obj, db: DB, emulator: TvmEmulator):
KEY_AUCTION_END_TIME: auction_end_time
}
else:
content = individual_content
try:
content, = self._execute_method(collection_emulator, 'get_nft_content', [index, individual_content], db, obj)
except Exception as e:
logger.warning(f"Failed to get nft content: {e}")
content = {}
if collection_address in TELEMINT_COLLECTIONS:
try:
bidder_address, bid, bid_ts, min_bid, end_time = self._execute_method(emulator, 'get_telemint_auction_state', [], db, obj)
Expand Down Expand Up @@ -207,4 +211,4 @@ def _do_parse(self, obj, db: DB, emulator: TvmEmulator):
content[k] = v

logger.info(f"New NFT discovered: {nft_address}: {index} {collection_address} {owner_address} {obj['last_trans_lt']} {content}")
# db.insert_nft_item_v2(nft_address, index, collection_address, owner_address, obj['last_trans_lt'], obj['timestamp'], init != 0, content)
db.insert_nft_item_v2(nft_address, index, collection_address, owner_address, obj['last_trans_lt'], obj['timestamp'], init != 0, content)

0 comments on commit eee168c

Please sign in to comment.