Skip to content

Commit

Permalink
test: fix test constants
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Jan 9, 2025
1 parent 910a5cd commit 33dfe23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/e2e-tests/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static SEQUENCER_RPC: LazyLock<Url> = LazyLock::new(|| {
});

/// Test account private key
const TEST_PRIVATE_KEY: &str = "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d";
const TEST_PRIVATE_KEY: B256 = b256!("59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d");

/// Default delegation address for testing
const DEFAULT_DELEGATION_ADDRESS: &str = "0x90f79bf6eb2c4f870365e785982e1f101e93b906";
Expand All @@ -43,12 +43,12 @@ async fn assert_chain_advances() -> Result<(), Box<dyn std::error::Error>> {
}

let provider = ProviderBuilder::new().on_http(SEQUENCER_RPC.clone());

let initial_block = provider.get_block_number().await?;

// Wait for new block
tokio::time::sleep(std::time::Duration::from_secs(5)).await;

let new_block = provider.get_block_number().await?;

assert!(
Expand All @@ -67,7 +67,7 @@ async fn test_wallet_api() -> Result<(), Box<dyn std::error::Error>> {
}

let provider = ProviderBuilder::new().on_http(REPLICA_RPC.clone());
let signer = PrivateKeySigner::from_bytes(&b256!(TEST_PRIVATE_KEY))?;
let signer = PrivateKeySigner::from_bytes(&TEST_PRIVATE_KEY)?;

let delegation_address = Address::from_str(
&std::env::var("DELEGATION_ADDRESS").unwrap_or_else(|_| DEFAULT_DELEGATION_ADDRESS.to_string()),
Expand Down Expand Up @@ -150,7 +150,7 @@ async fn test_withdrawal_proof_with_fallback() -> Result<(), Box<dyn std::error:
}

let provider = ProviderBuilder::new().on_http(REPLICA_RPC.clone());

// Get latest block for proof verification
let block: Block = provider
.client()
Expand Down

0 comments on commit 33dfe23

Please sign in to comment.