CodeSampleX

Sample

HeapPriorityQueue.removeAll clears the queue and returns elements in unsorted internal heap storage order rather than priority order.

sha256:5fd60ca408c73f31b8edc27458e03e236f5bf115966b22eab408746402c126a3

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
HeapPriorityQueue.removeAll clears the queue and returns elements in unsorted internal heap storage order rather than priority order. HOW
Packages
collection 1.19.0
Environment
dart
Created
2026-08-17T02:04:51Z

Commonly assumed

Calling removeAll on a PriorityQueue empties the queue and returns all elements sorted in priority order.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts