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

L1 Fee Curie: add unit test #1313

Merged
merged 20 commits into from
Jun 5, 2024
Merged

L1 Fee Curie: add unit test #1313

merged 20 commits into from
Jun 5, 2024

Conversation

DreamWuGit
Copy link
Member

@DreamWuGit DreamWuGit commented May 31, 2024

Description

update TxL1FeeGadgetTestContainer to support Curie l1 fee unit tests

Issue Link

[link issue here]

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@DreamWuGit DreamWuGit marked this pull request as ready for review June 3, 2024 01:25
@lispc
Copy link

lispc commented Jun 4, 2024

@DreamWuGit can merge develop

@DreamWuGit
Copy link
Member Author

will fix new test failure

@DreamWuGit DreamWuGit marked this pull request as draft June 4, 2024 07:55
@DreamWuGit DreamWuGit marked this pull request as ready for review June 5, 2024 01:29
@DreamWuGit
Copy link
Member Author

@lispc ready now.

.assign(region, 0, Value::known(F::from(is_curie)))?;
let rlp_signed_len = if is_curie == 1 { tx_signed_length } else { 0 };
self.tx_signed_length
.assign(region, 0, Value::known(F::from(rlp_signed_len)))?;
Copy link

Choose a reason for hiding this comment

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

i think it is ok to still assign tx_signed_length even when is_curie == 0? Not used anyway

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

Copy link
Member Author

@DreamWuGit DreamWuGit Jun 5, 2024

Choose a reason for hiding this comment

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

in begin_tx , this tx_signed_length is looked up from tx table, so can not be any value eventually in real circuit even not is_curie.

@lispc lispc merged commit 8cd233b into develop Jun 5, 2024
16 checks passed
@lispc lispc deleted the curie_unittest branch June 5, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants