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

Follow-up clean ups and fixed for the VM initialization #527

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Jul 26, 2023

Some follow-up improvements for the #514.

Also, during fixing, it found that the VM was initialized incorrectly for the predicate case. The balances should be zero.

image

@xgreenx xgreenx requested review from MitchTurner and a team July 26, 2023 01:12
@xgreenx xgreenx self-assigned this Jul 26, 2023
}

/// Constructor for the `ConsensusParameters` with Standard values around `ChainId`.
pub fn standard_with_id(chain_id: ChainId) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would a builder pattern be more idiomatic here? I.e., something like:

let parameters = ConsensusParameters::standard().chain_id(chain_id);

@xgreenx xgreenx added this pull request to the merge queue Jul 26, 2023
Merged via the queue into master with commit e955f6f Jul 26, 2023
@xgreenx xgreenx deleted the feature/balances-predicate branch July 26, 2023 10:05
@xgreenx xgreenx mentioned this pull request Aug 8, 2023
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.

2 participants