Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

"Non-var in fun position" error when substituting coin dynref #997

@sirlensalot

Description

@sirlensalot

To reproduce:

pact> (load "root/coin.pact")
"Loading root/coin.pact..."
<interactive>:1:0: Cannot resolve "fungible-v2.account-details"
 at : module
pact> (load "root/fungible-v2.pact")
"Loading root/fungible-v2.pact..."
"Loaded interface fungible-v2"
pact> (load "root/coin.pact")
"Loading root/coin.pact..."
"Loaded module coin, hash 3eziVWts1RzJW3YkHEMVIeIgNNS1lgv6_peqzkAQ0ns"
"TableCreated"
"TableCreated"
pact> (env-dynref fungible-v2 coin)
"Added dynamic ref to environment."
pact> (module foo g (defcap g () true))
"Loaded module foo, hash uxkjQKWoqLR7W4-yGMUltMuKnsI2asw7TtYOIJUX9s4"
pact> (verify 'foo)
<interactive>:1:0: : Non-var in fun position 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions