Skip to content

BIP388: fix variable name in from_descriptor() to prevent NameError - #1952

Merged
jonatack merged 1 commit into
bitcoin:masterfrom
MozirDmitriy:mzd
Sep 4, 2025
Merged

BIP388: fix variable name in from_descriptor() to prevent NameError#1952
jonatack merged 1 commit into
bitcoin:masterfrom
MozirDmitriy:mzd

Conversation

@MozirDmitriy

@MozirDmitriy MozirDmitriy commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

Replace unintended reference to local variable name desc with the correct method parameter descriptor in from_descriptor. The previous code raised a NameError when scanning operators because desc is not defined in that scope. This change aligns with the rest of the method, which consistently uses descriptor, and allows the example in main to run without error.

@jonatack jonatack changed the title fix(wallet_policies): use descriptor instead of desc to prevent NameError BIP388: fix variable name in from_descriptor() to prevent NameError Sep 4, 2025

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 25ffcfc

This appears to be a typo, as no desc is defined in that function.

@jonatack
jonatack merged commit f420c7f into bitcoin:master Sep 4, 2025
4 checks passed
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.

2 participants