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

feat(api): Do not return receipt if tx was not included to the batch #706

Merged

Conversation

Deniallugo
Copy link
Contributor

What ❔

For compatibility with Ethereum, we have to return Receipt only if tx is included in the miniblock. Block hash is not null null.

Why ❔

For compatibility with Ethereum and for not breaking external clients, such as Metemask, they do not expect that block hash could be null

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via cargo spellcheck --cfg=./spellcheck/era.cfg --code 1.

@Deniallugo Deniallugo force-pushed the deniallugo-do-not-return-receipt-if-tx-was-not-included branch from 19d0bd1 to ea74ac8 Compare December 18, 2023 20:08
perekopskiy
perekopskiy previously approved these changes Dec 18, 2023
core/lib/types/src/api/mod.rs Show resolved Hide resolved
Signed-off-by: Danil <deniallugo@gmail.com>
Signed-off-by: Danil <deniallugo@gmail.com>
RomanBrodetski
RomanBrodetski previously approved these changes Dec 19, 2023
perekopskiy
perekopskiy previously approved these changes Dec 19, 2023
RomanBrodetski
RomanBrodetski previously approved these changes Dec 19, 2023
@RomanBrodetski RomanBrodetski merged commit 625d632 into main Dec 19, 2023
24 checks passed
@RomanBrodetski RomanBrodetski deleted the deniallugo-do-not-return-receipt-if-tx-was-not-included branch December 19, 2023 17:39
RomanBrodetski pushed a commit that referenced this pull request Dec 19, 2023
🤖 I have created a release *beep* *boop*
---


##
[18.9.0](core-v18.8.0...core-v18.9.0)
(2023-12-19)


### Features

* Add ecadd and ecmul to the list of precompiles upon genesis
([#669](#669))
([0be35b8](0be35b8))
* **api:** Do not return receipt if tx was not included to the batch
([#706](#706))
([625d632](625d632))
* proto serialization/deserialization of snapshots creator objects
([#667](#667))
([9f096a4](9f096a4))
* zk fmt sqlx-queries
([#533](#533))
([6982343](6982343))


### Bug Fixes

* **en:** Downgrade miniblock hash equality assertion to warning
([#695](#695))
([2ef3ec8](2ef3ec8))


### Performance Improvements

* remove unnecessary to_vec
([#702](#702))
([c55a658](c55a658))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

3 participants