Skip to content
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

Complete deterministic builder #191

Closed
wants to merge 3 commits into from
Closed

Complete deterministic builder #191

wants to merge 3 commits into from

Conversation

dr-orlovsky
Copy link
Member

This is an alternative to #190 (comment)

@dr-orlovsky dr-orlovsky requested a review from zoedberg April 17, 2024 21:07
@dr-orlovsky dr-orlovsky added the enhancement New feature or request label Apr 17, 2024
@dr-orlovsky dr-orlovsky added this to the v0.11.0 milestone Apr 17, 2024
@dr-orlovsky dr-orlovsky self-assigned this Apr 18, 2024
Copy link
Contributor

@zoedberg zoedberg left a comment

Choose a reason for hiding this comment

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

Tested, it works so I'm approving this.
Just a small note: trying to use deterministic methods on a builder constructed with ContractBuilder::with returns the error to add owned state in deterministic way the builder has to be created using `*_det` constructor, which IMO makes the user think he should call ContractBuilder::with_det, but that doesn't exist and the correct way of constructing a deterministic builder is ContractBuilder::deterministic. So maybe we should rename the deterministic method to with_det or change the error message of deterministic methods.

@dr-orlovsky
Copy link
Member Author

Sure! Done in 0a392e7

@dr-orlovsky dr-orlovsky changed the base branch from script-refactor to v0.11 April 22, 2024 11:47
@dr-orlovsky dr-orlovsky changed the base branch from v0.11 to script-refactor April 22, 2024 11:48
@dr-orlovsky dr-orlovsky changed the base branch from script-refactor to master April 22, 2024 11:48
@dr-orlovsky dr-orlovsky changed the base branch from master to script-refactor April 22, 2024 11:49
@dr-orlovsky dr-orlovsky deleted the det branch May 24, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants