Skip to content

Commit 33dfe23

Browse files
committed
test: fix test constants
1 parent 910a5cd commit 33dfe23

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/e2e-tests/src/tests.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static SEQUENCER_RPC: LazyLock<Url> = LazyLock::new(|| {
3030
});
3131

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

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

4545
let provider = ProviderBuilder::new().on_http(SEQUENCER_RPC.clone());
46-
46+
4747
let initial_block = provider.get_block_number().await?;
48-
48+
4949
// Wait for new block
5050
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
51-
51+
5252
let new_block = provider.get_block_number().await?;
5353

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

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

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

152152
let provider = ProviderBuilder::new().on_http(REPLICA_RPC.clone());
153-
153+
154154
// Get latest block for proof verification
155155
let block: Block = provider
156156
.client()

0 commit comments

Comments
 (0)