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

Remove 5 flow control exceptions #7537

Merged
merged 6 commits into from
Oct 2, 2024
Merged

Remove 5 flow control exceptions #7537

merged 6 commits into from
Oct 2, 2024

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Oct 1, 2024

Mostly white space changes

Changes

  • Switch to a return code and two gotos (some white space changes from containing a using so goto can be used)

image

image

Types of changes

What types of changes does your code introduce?

  • Optimization

Testing

Requires testing

  • No

@benaadams benaadams changed the title Remove two flow control exceptions Remove three flow control exceptions Oct 1, 2024
@benaadams benaadams changed the title Remove three flow control exceptions Remove four flow control exceptions Oct 1, 2024
@benaadams benaadams changed the title Remove four flow control exceptions Remove 5 flow control exceptions Oct 2, 2024
PrepareAccountForContractDeployment(env.ExecutingAccount, spec);
if (!PrepareAccountForContractDeployment(env.ExecutingAccount, spec))
{
goto Fail;
Copy link
Member

Choose a reason for hiding this comment

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

Is this a logic change, instead of throwing we will go to fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes and no. So would have thrown, and been caught and done same thing.

Now doesn't throw, does same thing (will also do same thing if does throw, as are other exceptions possible)

@benaadams benaadams merged commit 5e1dfc0 into master Oct 2, 2024
66 checks passed
@benaadams benaadams deleted the flow-control branch October 2, 2024 10:30
rjnrohit pushed a commit that referenced this pull request Oct 10, 2024
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