Skip to content

refactor: use new variadic concat#7292

Merged
brice-stacks merged 4 commits into
stacks-network:pox-wf-integrationfrom
brice-stacks:feat/use-variadic-concat
Jun 15, 2026
Merged

refactor: use new variadic concat#7292
brice-stacks merged 4 commits into
stacks-network:pox-wf-integrationfrom
brice-stacks:feat/use-variadic-concat

Conversation

@brice-stacks

Copy link
Copy Markdown
Contributor

Leaving this in draft until Clarinet is updated with support so we can properly run the tests.

@djordon-stacks djordon-stacks left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, at least so far

There seems to be a bug in vitest that causes it to stall when there
is that failure during setup. The latest v4 version fixes the hang, but
the error is hidden. I've opened an issue with `vitest` to fix this.
This gives us the variadic `concat` support needed to merge this PR.
@brice-stacks brice-stacks force-pushed the feat/use-variadic-concat branch from 9169655 to 919f2b5 Compare June 12, 2026 16:10
@brice-stacks brice-stacks marked this pull request as ready for review June 12, 2026 16:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the PoX-5 boot contract to use the new variadic concat form (reducing nested concat expressions) and updates the core-contract-tests JS tooling to versions compatible with the updated Clarinet SDK.

Changes:

  • Refactor multiple PoX-5 contract byte-buffer concatenations to use variadic concat and adjust formatting for readability.
  • Update @stacks/clarinet-sdk and vitest versions used by contrib/core-contract-tests.
  • Add a changelog entry documenting the PoX-5 variadic concat update.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
stackslib/src/chainstate/stacks/boot/pox-5.clar Refactors buffer concatenation logic to the new variadic concat and updates related comments/formatting.
contrib/core-contract-tests/package.json Bumps Clarinet SDK and Vitest versions used by contract tests.
contrib/core-contract-tests/package-lock.json Updates the resolved dependency graph for the bumped toolchain versions.
changelog.d/use-variadic-concat.changed Notes the PoX-5 contract refactor to variadic concat.
Files not reviewed (1)
  • contrib/core-contract-tests/package-lock.json: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contrib/core-contract-tests/package-lock.json

@hstove-stacks hstove-stacks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@brice-stacks brice-stacks merged commit b412a83 into stacks-network:pox-wf-integration Jun 15, 2026
223 of 226 checks passed
@brice-stacks brice-stacks deleted the feat/use-variadic-concat branch June 15, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants