Skip to content

Require to use CanonSourceFile in the CompiledProgram and TemplateProgram in new_with_dep method#315

Merged
apoelstra merged 1 commit into
BlockstreamResearch:masterfrom
Sdoba16:require-CanonSourceFile
May 21, 2026
Merged

Require to use CanonSourceFile in the CompiledProgram and TemplateProgram in new_with_dep method#315
apoelstra merged 1 commit into
BlockstreamResearch:masterfrom
Sdoba16:require-CanonSourceFile

Conversation

@Sdoba16
Copy link
Copy Markdown
Collaborator

@Sdoba16 Sdoba16 commented May 7, 2026

Closes #311
Oblige user to use CanonSourceFile in the CompiledProgram and TemplateProgram in new_with_dep method to prevent passing SourceFile::anonymous.

This PR should be merged after the #312 to prevent conflicts as it follows its implementation.

@Sdoba16 Sdoba16 requested review from KyrylR and LesterEvSe May 7, 2026 11:27
@Sdoba16 Sdoba16 self-assigned this May 7, 2026
@Sdoba16 Sdoba16 force-pushed the require-CanonSourceFile branch from 20266d2 to ed7442c Compare May 7, 2026 11:42
…rogram to forbid passing SourceFile::anonymous
@Sdoba16 Sdoba16 force-pushed the require-CanonSourceFile branch from ed7442c to cdaab4d Compare May 21, 2026 14:03
@LesterEvSe LesterEvSe marked this pull request as ready for review May 21, 2026 15:08
@LesterEvSe LesterEvSe requested a review from delta1 as a code owner May 21, 2026 15:08
@LesterEvSe
Copy link
Copy Markdown
Collaborator

ACK cdaab4d; tested locally

Copy link
Copy Markdown
Contributor

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK cdaab4d; successfully ran local tests

@apoelstra apoelstra merged commit c006ff8 into BlockstreamResearch:master May 21, 2026
11 checks passed
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.

Require CanonSourceFile in new_with_dep signatures

3 participants