Skip to content

Use clarinet sdk 3 #37

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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Use clarinet sdk 3 #37

wants to merge 20 commits into from

Conversation

friedger
Copy link
Owner

This PR

  • updates clarinet sdk to version 3

@friedger
Copy link
Owner Author

Currently, tests fail with wrong remote data

image

@hugoclrd
Copy link

The burn block header hash issue appears to be a regression from v2.16.0. Clarinet returns mock data instead of the real hash.
I'll dig into that

@hugoclrd
Copy link

@friedger
Clarinet 3.0.2 was released an fixed the block header hash issue.

You'll still have to resolve some breaking changes (intToBytes has a breaking change).

As well as expect(parsedTx.result.type).toBe(7); can use the helper expect(parsedTx.result).toHaveClarityType(ClarityType.ResponseOk)

There's still a panic Result::unwrap() on an Err value: "Could not find snapshot BlockHeight(0)\n", when specifically testing on an invalid hash.
I'll try to handle it gracefully

@friedger friedger changed the base branch from chore/rv-0.7.0 to main May 25, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants