Skip to content

Bug testing Clarity 2 contracts in v1.2.0 #709

Closed

Description

Previously, I was able to write and test Clarity 2 contracts using Clarinet without issues. However, with 1.2.0, there's been a regression. When running a test that calls a Clarity 2 function, you get the error:

Unchecked(CostComputationFailed("Error evaluating result of cost function ST000000000000000000002AMW42H.costs.cost_slice: Unchecked(UndefinedFunction(\"cost_slice\"))"))

Not just for slice?, but for all Clarity 2 functions.

I have a demo project that reproduces this: https://github.com/hstove/clarinet-repro-cost-bug

Run clarinet test tests/tester_test.ts to repro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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