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

snforge_std: remove RevertedTransaction #1942

Merged
merged 18 commits into from
Apr 8, 2024
Merged

Conversation

drknzz
Copy link
Contributor

@drknzz drknzz commented Mar 28, 2024

Closes #1887

Introduced changes

  • remove RevertedTransaction
  • L1Handler execute() returns SyscallResult<()>
  • declare() returns Result<ContractClass, Array<felt252>>

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

@drknzz drknzz force-pushed the 1887-reverted-transaction branch from 83d922f to c5ee788 Compare March 28, 2024 08:48
@drknzz drknzz requested a review from Arcticae March 28, 2024 08:49
@drknzz drknzz force-pushed the 1887-reverted-transaction branch from c5ee788 to 26783ad Compare April 2, 2024 14:36
@drknzz drknzz changed the base branch from master to 1894-deploy-syscallresult April 2, 2024 14:36
@drknzz drknzz force-pushed the 1894-deploy-syscallresult branch from efee655 to 48232bb Compare April 3, 2024 12:52
@drknzz drknzz force-pushed the 1894-deploy-syscallresult branch from 7ac9dc8 to 081f85a Compare April 3, 2024 17:10
@drknzz drknzz force-pushed the 1887-reverted-transaction branch from 26783ad to 3ceef6d Compare April 4, 2024 06:37
@drknzz drknzz force-pushed the 1887-reverted-transaction branch from 3ceef6d to dcc018f Compare April 4, 2024 06:50
@drknzz drknzz marked this pull request as ready for review April 4, 2024 07:38
@drknzz drknzz requested a review from a team as a code owner April 4, 2024 07:38
@drknzz drknzz requested review from Draggu and removed request for a team April 4, 2024 07:38
@drknzz drknzz changed the title snforge_std: RevertedTransaction snforge_std: remove RevertedTransaction Apr 4, 2024
piotmag769
piotmag769 approved these changes Apr 5, 2024
@@ -20,7 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Changed

- `read_txt` and `read_json` now supports `ByteArray`
- `snforge_std::declare` returns `Result<ContractClass, RevertedTransaction>` instead of `ContractClass`
Copy link
Member

Choose a reason for hiding this comment

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

Why do we remove this?

Copy link
Member

@piotmag769 piotmag769 Apr 8, 2024

Choose a reason for hiding this comment

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

We shouldn't modify our past changelog :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree.
This hasn't been released though, see v0.21.0 CHANGELOG

Base automatically changed from 1894-deploy-syscallresult to master April 8, 2024 08:33
@drknzz drknzz added this pull request to the merge queue Apr 8, 2024
Merged via the queue into master with commit d2b71f6 Apr 8, 2024
13 checks passed
@drknzz drknzz deleted the 1887-reverted-transaction branch April 8, 2024 08:58
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.

RevertedTransaction remake
3 participants