Skip to content

Commit d0c7bdc

Browse files
authored
fix duplicate constants in e2e tests
1 parent 17cdab0 commit d0c7bdc

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

crates/e2e-tests/src/tests.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,12 @@ async fn test_new_wallet_api() -> Result<(), Box<dyn std::error::Error>> {
112112
}
113113

114114
let provider = ProviderBuilder::new().connect_http(REPLICA_RPC.clone());
115-
let signer = PrivateKeySigner::from_bytes(&b256!(
116-
"59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
117-
))?;
115+
let signer = PrivateKeySigner::from_bytes(&TEST_PRIVATE_KEY)?;
118116

119117
let delegation_address = Address::from_str(
120118
&std::env::var("DELEGATION_ADDRESS")
121-
.unwrap_or_else(|_| "0x90f79bf6eb2c4f870365e785982e1f101e93b906".to_string()),
122-
)
123-
.unwrap();
119+
.unwrap_or_else(|_| DEFAULT_DELEGATION_ADDRESS.to_string()),
120+
)?;
124121

125122
let auth = Authorization {
126123
chain_id: U256::from(provider.get_chain_id().await?),
@@ -181,9 +178,7 @@ async fn test_withdrawal_proof_with_fallback() -> Result<(), Box<dyn std::error:
181178

182179
// If not targeting the withdrawal contract, it defaults back to the standard getProof
183180
// implementation
184-
let signer = PrivateKeySigner::from_bytes(&b256!(
185-
"59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
186-
))?;
181+
let signer = PrivateKeySigner::from_bytes(&TEST_PRIVATE_KEY)?;
187182

188183
let eoa_response: EIP1186AccountProofResponse = provider
189184
.client()

0 commit comments

Comments
 (0)