Skip to content

Commit

Permalink
style: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Jul 15, 2024
1 parent 2223850 commit 6c95695
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/ef-testing/src/evm_sequencer/utils.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* trunk-ignore(clippy/unused_imports) */
use super::constants::KAKAROT_ADDRESS;

use super::constants::{RELAYER_ADDRESS, RELAYER_SIGNING_KEY};
use super::types::felt::FeltSequencer;
use bytes::BytesMut;
Expand Down Expand Up @@ -43,10 +40,10 @@ pub fn felt_to_bytes(felt: &FieldElement, start: usize) -> Bytes {
felt.to_bytes_be()[start..].to_vec().into()
}

#[allow(unused_variables)] // necessary for starknet_address which is behind a flag
/// Converts an signed transaction and a signature to a Starknet-rs transaction.
pub fn to_broadcasted_starknet_transaction(
transaction: &TransactionSigned,
/* trunk-ignore(clippy/unused_variables) */
starknet_address: FieldElement,
relayer_nonce: FieldElement,
) -> Result<BroadcastedInvokeTransaction, eyre::Error> {
Expand Down Expand Up @@ -92,6 +89,7 @@ pub fn to_broadcasted_starknet_transaction(
let mut execute_from_outside_calldata: Vec<FieldElement> = {
#[cfg(feature = "v0")]
{
use crate::evm_sequencer::constants::KAKAROT_ADDRESS;
vec![
(*RELAYER_ADDRESS.0.key()).into(), // caller -- OutsideExecution
FieldElement::ZERO, // nonce (not used)
Expand Down

0 comments on commit 6c95695

Please sign in to comment.