-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
Bug Description
When creating/editing a Chainhook v2 via the Hiro Platform dashboard, the contract identifier filter for contract_log events appears blank when revisiting the "Edit Chainhook" page — even though the filter was previously set and the hook is partially working.
Steps to Reproduce
- Go to Hiro Platform → Chainhooks → Create/Edit
- Under Smart Contracts, select
contract_log - Set the contract identifier to a specific contract (e.g.
SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.pepe-nft-marketplace) - Save the chainhook
- Go back to edit the same chainhook
- The contract identifier field now shows blank/empty — as if no filter was set
Expected Behavior
The contract identifier should persist and display the previously saved value when editing.
Observed Behavior
- The field appears blank on re-edit, suggesting "Any" contract
- Despite this, the hook does receive some events from the correct contract (we confirmed
nft-unlistedevents were delivered to our webhook) - However, other events (
nft-listed) from the same contract in the same time window are silently dropped — unclear if related to the blank filter display or a separate delivery issue
Webhook Logs
Our webhook endpoint (/api/chainhook/record-nft-marketplace) shows:
- ✅
nft-unlistedevent for token feat: disable rosetta via an ENV var #1804 — delivered successfully (twice, actually) - ❌
nft-listedevent for token fix: warning logger level for RPC proxy errors #1612 (tx0x31dae8f8..., block #6806114) — never delivered - ❌
nft-listedevent for token chore: update to latest stacks image with epoch2.5 bootup #1924 (tx0x1294882f..., block #6803517) — never delivered
All three events were emitted by the same contract (SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.pepe-nft-marketplace) and confirmed successful on-chain via the Hiro explorer.
Impact
- Cannot verify or confirm the current filter configuration through the dashboard
- Unclear whether the blank display is a UI-only bug or if the filter is actually being reset/corrupted
- Events are being intermittently lost, making it unreliable for production indexing
Environment
- Chainhook v2 API (hosted):
api.mainnet.hiro.so/chainhooks/me - Network: Stacks mainnet
- Hook name:
nft-marketplace-pepe - Contract:
SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.pepe-nft-marketplace - Event type:
contract_log
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🆕 New