Closed aulneau closed 2 years ago
In my tests, it looks like this fixes it:
select * from(SELECT DISTINCT ON (asset_identifier, value) asset_identifier,
value,
recipient,
tx_id,
event_index,
nft.block_height
FROM nft_events AS nft
INNER JOIN
txs USING (tx_id)
where txs.canonical = true
AND txs.microblock_canonical = true
AND nft.canonical = true
AND nft.microblock_canonical = true
ORDER BY asset_identifier,
value,
txs.block_height DESC,
txs.microblock_sequence DESC,
txs.tx_index DESC,
event_index DESC) nft_custody
WHERE nft_custody.recipient = 'SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFD'
and nft_custody.asset_identifier = 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.byzantion-stacks-parrots::stacks-parrots'
Done and dusted
:tada: This issue has been resolved in version 2.2.0-beta.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 3.0.0-beta.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
if you filter the data in
nft_events
to show events for asset_identifier:SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.byzantion-stacks-parrots::stacks-parrots
value:\x01000000000000000000000000000002b3
You'll see that it shows two rows, the first one being a mint, and the second one being a transfer (to a burn address). These both happened in the same tx/block.
the
/holdings
view shows the owner of the asset as SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFDI believe the issue is in the first query of the
nft_custody
materialized view: