Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Contracts: ConditionInterpreter issue #918

Closed
bchamagne opened this issue Feb 28, 2023 · 0 comments · Fixed by #961
Closed

Smart Contracts: ConditionInterpreter issue #918

bchamagne opened this issue Feb 28, 2023 · 0 comments · Fixed by #961
Assignees
Labels
bug Something isn't working smart contracts Involve smart contracts

Comments

@bchamagne
Copy link
Member

Describe the problem you discovered

      assert Interpreter.sanitize_code(~s"""
             condition transaction: [
               uco_transfers: size() < 10
             ]
             """)
             |> elem(1)
             |> ConditionInterpreter.parse()
             |> elem(2)
             |> ConditionInterpreter.valid_conditions?(%{
               "transaction" => %{
                 "uco_transfers" => %{"tototo" => 12}
               }
             })

This test will not pass in ConditionInterpreter v0. It does pass on ConditionInterpreter v1 (#903).

Describe the solution you'd like

No response

@bchamagne bchamagne added bug Something isn't working smart contracts Involve smart contracts labels Feb 28, 2023
@bchamagne bchamagne self-assigned this Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working smart contracts Involve smart contracts
Projects
Status: Done 🍻
Development

Successfully merging a pull request may close this issue.

1 participant