diff --git a/integration_tests/src/contract_test.rs b/integration_tests/src/contract_test.rs index 62d8abcd7..ab7840b7d 100644 --- a/integration_tests/src/contract_test.rs +++ b/integration_tests/src/contract_test.rs @@ -11,7 +11,7 @@ use web30::{client::Web3, types::SendTxOption}; use crate::{ payments_eth::WEB3_TIMEOUT, - utils::{deploy_contracts, get_eth_node, wait_for_txids, MINER_PRIVATE_KEY, TX_TIMEOUT}, + utils::{deploy_contracts, get_eth_node, wait_for_txids, REGISTRATION_SERVER_KEY, TX_TIMEOUT}, }; pub async fn run_altheadb_contract_test() { @@ -27,7 +27,7 @@ pub async fn run_altheadb_contract_test() { } pub async fn validate_contract_exit_functionality(db_addr: Address) { - let miner_private_key: PrivateKey = MINER_PRIVATE_KEY.parse().unwrap(); + let miner_private_key: PrivateKey = REGISTRATION_SERVER_KEY.parse().unwrap(); let miner_pub_key = miner_private_key.to_address(); let contact = Web3::new(&get_eth_node(), WEB3_TIMEOUT); @@ -163,7 +163,7 @@ pub async fn validate_contract_exit_functionality(db_addr: Address) { } pub async fn validate_contract_user_functionality(db_addr: Address) { - let miner_private_key: PrivateKey = MINER_PRIVATE_KEY.parse().unwrap(); + let miner_private_key: PrivateKey = REGISTRATION_SERVER_KEY.parse().unwrap(); let miner_pub_key = miner_private_key.to_address(); let contact = Web3::new(&get_eth_node(), WEB3_TIMEOUT); diff --git a/integration_tests/src/db_migration_test.rs b/integration_tests/src/db_migration_test.rs index 26bd36db4..15763d280 100644 --- a/integration_tests/src/db_migration_test.rs +++ b/integration_tests/src/db_migration_test.rs @@ -18,7 +18,7 @@ use web30::client::Web3; use crate::{ payments_eth::{get_eth_miner_key, WEB3_TIMEOUT}, setup_utils::database::start_postgres, - utils::{deploy_contracts, get_eth_node, MINER_PRIVATE_KEY}, + utils::{deploy_contracts, get_eth_node, REGISTRATION_SERVER_KEY}, }; pub const DB_URI: &str = "postgres://postgres@localhost/test"; @@ -52,7 +52,7 @@ pub async fn run_db_migration_test() { check_and_add_user_admin( &Web3::new(&get_eth_node(), WEB3_TIMEOUT), althea_db_addr, - MINER_PRIVATE_KEY.parse().unwrap(), + REGISTRATION_SERVER_KEY.parse().unwrap(), miner_private_key, Some(WEB3_TIMEOUT), vec![], diff --git a/integration_tests/src/registration_server.rs b/integration_tests/src/registration_server.rs index 641638f6b..f74158071 100644 --- a/integration_tests/src/registration_server.rs +++ b/integration_tests/src/registration_server.rs @@ -18,13 +18,13 @@ use crate::{ }; use crate::{ registration_server::register_client_batch_loop::register_client_batch_loop, - utils::MINER_PRIVATE_KEY, + utils::REGISTRATION_SERVER_KEY, }; pub const REGISTRATION_PORT_SERVER: u16 = 40400; pub async fn start_registration_server(db_addr: Address) { - let miner_private_key: PrivateKey = MINER_PRIVATE_KEY.parse().unwrap(); + let miner_private_key: PrivateKey = REGISTRATION_SERVER_KEY.parse().unwrap(); let miner_pub_key = miner_private_key.to_address(); let contact = Web3::new(&get_eth_node(), WEB3_TIMEOUT); diff --git a/integration_tests/src/utils.rs b/integration_tests/src/utils.rs index 9fa1b0c07..c261d4be2 100644 --- a/integration_tests/src/utils.rs +++ b/integration_tests/src/utils.rs @@ -74,7 +74,7 @@ pub const MIN_GLOBAL_FEE_AMOUNT: u128 = 10; pub const TOTAL_TIMEOUT: Duration = Duration::from_secs(300); pub const DEBT_ACCURACY_THRES: u8 = 15; pub const ETH_NODE: &str = "http://localhost:8545"; -pub const MINER_PRIVATE_KEY: &str = +pub const REGISTRATION_SERVER_KEY: &str = "0x34d97aaf58b1a81d3ed3068a870d8093c6341cf5d1ef7e6efa03fe7f7fc2c3a8"; lazy_static! { @@ -170,7 +170,7 @@ pub async fn deploy_contracts() -> Address { .args([ "ts-node", "/althea_rs/solidity/contract-deployer.ts", - &format!("--eth-privkey={}", MINER_PRIVATE_KEY), + &format!("--eth-privkey={}", REGISTRATION_SERVER_KEY), &format!("--eth-node={}", ETH_NODE), ]) .output() @@ -1106,7 +1106,7 @@ pub async fn populate_routers_eth(rita_identities: InstanceData) { pub async fn add_exits_contract_exit_list(db_addr: Address, rita_identities: InstanceData) { let web3 = Web3::new("http://localhost:8545", WEB3_TIMEOUT); - let miner_private_key: clarity::PrivateKey = MINER_PRIVATE_KEY.parse().unwrap(); + let miner_private_key: clarity::PrivateKey = REGISTRATION_SERVER_KEY.parse().unwrap(); let miner_pub_key = miner_private_key.to_address(); add_exit_admin(