Skip to content

Can't compile contract with SmartPy #2

@niklr

Description

@niklr

It seems the current version of poll.py can't be compiled with ~/smartpy-cli/SmartPy.sh compile poll.py /tmp

polls = sp.big_map().

Not sure if the . is intended but this raises the first error. After removing the following compilation error is thrown:

[error] Declaration Error
Pattern variable "match_pair_poll_58_fst" escapes its scope. (inside_contract: true)
 (poll.py, line 58)

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