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

Commit

Permalink
Merge branch 'main' into perf/owned_to_program
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoPittella authored Jul 11, 2023
2 parents 1d71755 + dda6001 commit 059c513
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/transaction/l1_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,26 @@ impl L1Handler {
&[nonce.clone()],
)?;

Ok(L1Handler {
L1Handler::new_with_tx_hash(
contract_address,
entry_point_selector,
calldata,
nonce,
paid_fee_on_l1,
hash_value,
)
}

pub fn new_with_tx_hash(
contract_address: Address,
entry_point_selector: Felt252,
calldata: Vec<Felt252>,
nonce: Felt252,
paid_fee_on_l1: Option<Felt252>,
tx_hash: Felt252,
) -> Result<L1Handler, TransactionError> {
Ok(L1Handler {
hash_value: tx_hash,
contract_address,
entry_point_selector,
calldata,
Expand Down

0 comments on commit 059c513

Please sign in to comment.