Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Conversation

@silathdiir
Copy link

@silathdiir silathdiir commented Dec 14, 2023

Summary

  • add TxEip1559Gadget to handle sender balance check in begin-tx. Could reference geth code and scroll l2geth code.

  • update tx_l1_fee_word from U64Word type to Word in TxL1FeeGadget. Since it's used as a word in AddWordsGadget of TxEip1559Gadget.

  • update STEP_WIDTH (140 -> 141) and N_BYTE_LOOKUPS (26 -> 36) to make test pass. Since the new TxEip1559Gadget increases begin-tx gadget height and byte lookups (found when testing).

Asana

https://app.asana.com/0/1202392035220922/1206015154508069/f

@silathdiir silathdiir changed the title [WIP] add balance check to begin-tx (EIP-1559) feat: add sender balance check to begin-tx (EIP-1559) Dec 17, 2023
Copy link

@roynalnaruto roynalnaruto left a comment

Choose a reason for hiding this comment

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

We need more test cases:

  • Sender has sufficient balance (but exactly equal to value + fee)
  • Sender has insufficient balance (exactly 1 less than value + fee)

@lispc lispc merged commit 556fc28 into develop Jan 11, 2024
@lispc lispc deleted the eip-1559-balance-check branch January 11, 2024 05:43
Velaciela pushed a commit that referenced this pull request Jan 16, 2024
* Add balance check for gas fee (EIP-1559).

* Fix CI with scroll feature.

* Add more comments.

* Add test case.

* Delete duplicate fixes in tx circuit.

* Replace `or::expr` with `sum::expr` to simplify for boolean expressions.

* Update and add test cases.

* Fix lint.

* Disable tracing error cases for scroll feature.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants