diff --git a/src/domain/native/functionBody.test.ts b/src/domain/native/functionBody.test.ts index 09605dc0de0..1149ea10af6 100644 --- a/src/domain/native/functionBody.test.ts +++ b/src/domain/native/functionBody.test.ts @@ -84,30 +84,16 @@ describe("provider-neutral inclusive function body evidence", () => { ).toBe(true); }); it("checks entry membership using address space and inclusive endpoints", () => { - expect( + const acceptsEntry = (address: string, name: string) => procedureIdentitySchema.safeParse({ - address: "0x1002", - name: "last", + address, + name, classification: null, body: observed(), - }).success, - ).toBe(true); - expect( - procedureIdentitySchema.safeParse({ - address: "0x1003", - name: "gap", - classification: null, - body: observed(), - }).success, - ).toBe(false); - expect( - procedureIdentitySchema.safeParse({ - address: "other:0x1000", - name: "other", - classification: null, - body: observed(), - }).success, - ).toBe(false); + }).success; + expect(acceptsEntry("0x1002", "last")).toBe(true); + expect(acceptsEntry("0x1003", "gap")).toBe(false); + expect(acceptsEntry("other:0x1000", "other")).toBe(false); }); it.each([ { total_bytes: 18 },