Skip to content

Fix over-generic parameterization of ScriptContext#276

Merged
sanket1729 merged 1 commit intorust-bitcoin:masterfrom
JeremyRubin:fix-scriptcontext
Nov 6, 2021
Merged

Fix over-generic parameterization of ScriptContext#276
sanket1729 merged 1 commit intorust-bitcoin:masterfrom
JeremyRubin:fix-scriptcontext

Conversation

@JeremyRubin
Copy link
Copy Markdown
Contributor

The previous genericization of the ScriptContext methods permitted some very surprising behaviors that are certainly not intended. The Ctx Parameters should in all cases be a Self parameter as far as I can tell. This PR fixes this issue.

fixes #255 (comment)

Technically, this is a breaking change as the generic paremeter count decreases and it is not generally inferred I think. It's easy to fix, and any code which could not be fixed trivially would be hopelessly broken/buggy.

@JeremyRubin
Copy link
Copy Markdown
Contributor Author

cc @sanket1729

Copy link
Copy Markdown
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

ACK 6a89156

Copy link
Copy Markdown
Contributor

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

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

utACK 6a89156

@sanket1729 sanket1729 merged commit f03261a into rust-bitcoin:master Nov 6, 2021
@apoelstra
Copy link
Copy Markdown
Member

lol great catch. post-merge concept ACK.

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.

4 participants