test(indexer): fix parked-lifecycle fixtures for #285 _contract_address scoping #775
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!775
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/parked-lifecycle-fixture"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drive-by while working #316: tests/limit_order_parked_lifecycle.rs::park_event_then_claim_updates_db_and_api_filters is RED on main.
Root cause: #285 (
e951e61) scoped lifecycle event parsing to the runtime-reserved_contract_addresskey only (wasm_contract_addr / is_wasm_contract_addr_key), but this test's wasm_park_tx / wasm_claim_tx fixtures still emit the unreservedcontract_address. So the park/claim events never match the seeded pair, the order staysactive, and the assertion (parked_expired) fails. The #285 fixture sweep updated the parser unit-test fixtures but missed this integration test.Fix: point both fixtures at
_contract_address(what wasmd actually stamps). Test-only — production parsing is unchanged. Verified the test passes after the change.mentioned in issue #285
Security review
Commit reviewed:
c5cd51295a1f980359dfc9fa650471733657716aScope:
indexer/tests/limit_order_parked_lifecycle.rs— test fixture update only. Two mock wasm event attributes changed fromcontract_addressto_contract_addressinwasm_park_tx/wasm_claim_txso integration fixtures match wasmd output and the #285 parser scoping (wasm_contract_addr/is_wasm_contract_addr_key). No production code, dependencies, API surface, or auth paths modified.Method: Inspected MR diff; traced event-attribute handling through
indexer/src/indexer/parser.rs(unchanged by this MR). Confirmed #285 already restricts lifecycle event attribution to the runtime-reserved_contract_addresskey and ignores forgeablecontract_address. This MR only aligns stale test fixtures with that hardened behavior.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Inline threads: none (no findings to anchor).
mentioned in commit
2e67269718