Migrate NPC and location occurrences to native correction and explicit empty fallbacks

This commit is contained in:
2026-11-22 01:03:06 +00:00
parent 303d6589c5
commit 2c1d727232
23 changed files with 948 additions and 979 deletions

View File

@@ -46,7 +46,7 @@ func TestValidatorRegisters(t *testing.T) {
if err := Register(registry); err != nil {
t.Fatal(err)
}
if got, ok := registry.Spec(Key); !ok || got != Spec() || got.ExecutionClass != contracts.ExecutionClassDeterministic {
if got, ok := registry.Spec(Key); !ok || !reflect.DeepEqual(got, Spec()) || got.ExecutionClass != contracts.ExecutionClassDeterministic {
t.Fatalf("registered spec = %#v, ok = %t", got, ok)
}
if got := New(Options{}).CheckpointFingerprints(); len(got) != 1 || got[0].Value != policy {