Starknet allows duplicate class declarations for V1 declares. We only store the latest declaration's block number whereas we should be storing the first.
This occurs due to an incorrect WHERE guard clause.
This PR adds a regression test (was red), and a fix (test now green).
Starknet allows duplicate class declarations for V1 declares. We only store the latest declaration's block number whereas we should be storing the first.
This occurs due to an incorrect
WHERE
guard clause.This PR adds a regression test (was red), and a fix (test now green).