Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Add hash_value to l1 handler new #802

Merged
merged 3 commits into from
Jul 11, 2023
Merged

Add hash_value to l1 handler new #802

merged 3 commits into from
Jul 11, 2023

Conversation

SantiagoPittella
Copy link
Collaborator

@SantiagoPittella SantiagoPittella commented Jul 10, 2023

Closes #803

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.

@@ -46,17 +46,21 @@ impl L1Handler {
nonce: Felt252,
chain_id: Felt252,
paid_fee_on_l1: Option<Felt252>,
hash_value: Option<Felt252>,
) -> Result<L1Handler, TransactionError> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use a different constructor for this. The user should clearly see that mistakes could lead to inconsistencies by simply looking up the name.

@SantiagoPittella SantiagoPittella requested a review from Oppen July 10, 2023 20:02
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2023

Codecov Report

Merging #802 (a2a1566) into main (f62e42e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #802   +/-   ##
=======================================
  Coverage   93.17%   93.18%           
=======================================
  Files          52       52           
  Lines       12127    12144   +17     
=======================================
+ Hits        11299    11316   +17     
  Misses        828      828           
Impacted Files Coverage Δ
src/transaction/l1_handler.rs 97.14% <100.00%> (+0.21%) ⬆️

@Oppen Oppen added this pull request to the merge queue Jul 11, 2023
Merged via the queue into main with commit dda6001 Jul 11, 2023
@juanbono juanbono deleted the l1-handle-hash-value-optional branch July 31, 2023 23:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants