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

Changes panic to revert in sway-lib-std #1494

Merged

Conversation

gr00vytvniks
Copy link
Contributor

Closes #1470

I changed every instance of panic to revert and some of the comments. I also ran the test suite on a node and made corrections to the test where applicable.

@eureka-cpu eureka-cpu added the lib: std Standard library label May 7, 2022
@adlerjohn adlerjohn requested review from otrho and removed request for mitchmindtree May 7, 2022 01:50
sway-lib-std/src/revert.sw Outdated Show resolved Hide resolved
sway-lib-std/src/token.sw Outdated Show resolved Hide resolved
Copy link
Contributor

@nfurfaro nfurfaro left a comment

Choose a reason for hiding this comment

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

Looks good once existing comments are addressed.

…were mentioned and changed 'panic' to 'revert' in Examples
@adlerjohn adlerjohn added the breaking May cause existing user code to break. Requires a minor or major release. label May 7, 2022
Copy link
Contributor

@adlerjohn adlerjohn left a comment

Choose a reason for hiding this comment

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

CI failing.

@eureka-cpu
Copy link
Contributor

Looks like the use statements in the examples needs to be alphabetized to satisfy the formatter check.

@sezna
Copy link
Contributor

sezna commented May 8, 2022

Nice contribution! Thank you!

The CI (continuous integration -- our testing infrastructure) is currently failing for these changes. Here is what you need to do to fix them:

  1. Failure 1. Update the import in the test.
  2. Failure 2. The examples with an x here need to have the command forc fmt run on them, to format the code.

Copy link
Contributor

@sezna sezna left a comment

Choose a reason for hiding this comment

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

Looks good to me, will wait for a once-over from @adlerjohn before merging 😄 thanks for the contribution!

@eureka-cpu eureka-cpu merged commit 4634451 into FuelLabs:master May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking May cause existing user code to break. Requires a minor or major release. lib: std Standard library
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Rename panic to revert
5 participants