Skip to content

Commit

Permalink
fix hyperclient tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Nov 7, 2024
1 parent f059446 commit e3ea582
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/hyperclient/src/interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ mod tests {
rpc_url: "ws://127.0.0.1:9990".to_string(),
consensus_state_id: [0u8; 4],
hash_algo: HashAlgorithm::Keccak,
state_machine: StateMachine::Kusama(4009),
};
let config = ClientConfig {
source: ChainConfig::Evm(source_chain.clone()),
Expand All @@ -371,7 +372,10 @@ mod tests {
consensus_state_id: "ETH0".to_string(),
};

let js_hyperbridge = JsHyperbridgeConfig { rpc_url: "ws://127.0.0.1:9990".to_string() };
let js_hyperbridge = JsHyperbridgeConfig {
rpc_url: "ws://127.0.0.1:9990".to_string(),
state_machine: "KUSAMA-4009".into(),
};

let js_client_conf = JsClientConfig {
source: JsChainConfig::Evm(js_source),
Expand Down
6 changes: 6 additions & 0 deletions modules/hyperclient/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ pub async fn subscribe_to_request_status() -> Result<(), anyhow::Error> {
};

let hyperbrige_config = SubstrateConfig {
state_machine: StateMachine::Kusama(4009),

rpc_url: "wss://hyperbridge-paseo-rpc.blockops.network:443".to_string(),
// rpc_url: "ws://127.0.0.1:9001".to_string(),
consensus_state_id: *b"PARA",
Expand Down Expand Up @@ -182,6 +184,8 @@ pub async fn test_timeout_request() -> Result<(), anyhow::Error> {
};

let hyperbrige_config = SubstrateConfig {
state_machine: StateMachine::Kusama(4009),

rpc_url: "wss://hyperbridge-paseo-rpc.blockops.network:443".to_string(),
// rpc_url: "ws://127.0.0.1:9001".to_string(),
consensus_state_id: *b"PARA",
Expand Down Expand Up @@ -361,6 +365,8 @@ pub async fn get_request_handling() -> Result<(), anyhow::Error> {
};

let hyperbrige_config = SubstrateConfig {
state_machine: StateMachine::Kusama(4009),

// rpc_url: "wss://hyperbridge-paseo-rpc.blockops.network:443".to_string(),
rpc_url: "ws://127.0.0.1:9001".to_string(),
consensus_state_id: *b"PARA",
Expand Down
4 changes: 4 additions & 0 deletions modules/hyperclient/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ async fn test_query_status_from_indexer() -> Result<(), anyhow::Error> {
};

let hyperbrige_config = SubstrateConfig {
state_machine: StateMachine::Kusama(4009),

rpc_url: "wss://hyperbridge-paseo-rpc.blockops.network:443".to_string(),
consensus_state_id: *b"PARA",
hash_algo: HashAlgorithm::Keccak,
Expand Down Expand Up @@ -171,6 +173,8 @@ async fn test_query_response_status_from_indexer() -> Result<(), anyhow::Error>
};

let hyperbrige_config = SubstrateConfig {
state_machine: StateMachine::Kusama(4009),

rpc_url: "wss://hyperbridge-paseo-rpc.blockops.network:443".to_string(),
consensus_state_id: *b"PARA",
hash_algo: HashAlgorithm::Keccak,
Expand Down

0 comments on commit e3ea582

Please sign in to comment.