kadena-io / pact

The Pact Smart Contract Language
https://docs.kadena.io/build/pact
BSD 3-Clause "New" or "Revised" License
579 stars 100 forks source link

FV: authorized-by referencing a constant failure #1294

Closed rsoeldner closed 1 year ago

rsoeldner commented 1 year ago

reported by @EnoF:

               (defconst testname: string 'ks)

               (defun test:bool ()
                 @model[(property (authorized-by testname))]
                 (enforce-guard (create-module-guard "governance")))

results in:

could not parse (authorized-by testname): in (authorized-by testname), couldn't find property named authorized-by