diff --git a/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs b/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs index 58204ac9..4da6a061 100644 --- a/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs +++ b/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs @@ -106,31 +106,31 @@ mod tests { use super::*; - // #[tokio::test] - // async fn start_new() { - // match ArbitrumEnv::new().await { - // Ok(arbitrum_env) => { - // tracing::info!("Arbitrum chain is up {:?}", arbitrum_env); - // }, - // Err(arbitrum_env_error) => { - // tracing::error!("Error: {:?}", arbitrum_env_error); - // }, - // } - // } - - // #[tokio::test] - // async fn cleanup_success() { - // // Assuming cleanup is successful - // let result = ArbitrumEnv::cleanup().await; - // assert!(result.is_ok(), "Cleanup failed: {:?}", result); - // } - - // #[tokio::test] - // async fn cleanup_failure() { - // // Assuming cleanup fails - // let result = ArbitrumEnv::cleanup().await; - // assert!(result.is_err(), "Cleanup should have failed: {:?}", result); - // } + #[tokio::test] + async fn start_new() { + match ArbitrumEnv::new().await { + Ok(arbitrum_env) => { + tracing::info!("Arbitrum chain is up {:?}", arbitrum_env); + }, + Err(arbitrum_env_error) => { + tracing::error!("Error: {:?}", arbitrum_env_error); + }, + } + } + + #[tokio::test] + async fn cleanup_success() { + // Assuming cleanup is successful + let result = ArbitrumEnv::cleanup().await; + assert!(result.is_ok(), "Cleanup failed: {:?}", result); + } + + #[tokio::test] + async fn cleanup_failure() { + // Assuming cleanup fails + let result = ArbitrumEnv::cleanup().await; + assert!(result.is_err(), "Cleanup should have failed: {:?}", result); + } #[tokio::test] async fn network_status() { diff --git a/chains/ethereum/server/src/client.rs b/chains/ethereum/server/src/client.rs index 9d9ec7ad..d38abd29 100644 --- a/chains/ethereum/server/src/client.rs +++ b/chains/ethereum/server/src/client.rs @@ -303,8 +303,8 @@ where block.clone(), transaction, ) - .await; - transactions.push(transaction.unwrap()); + .await?; + transactions.push(transaction); } Ok(Block { block_identifier: BlockIdentifier { diff --git a/chains/ethereum/server/src/utils.rs b/chains/ethereum/server/src/utils.rs index b35b655d..a6cd0523 100644 --- a/chains/ethereum/server/src/utils.rs +++ b/chains/ethereum/server/src/utils.rs @@ -96,7 +96,6 @@ pub async fn get_transaction( if tx_receipt.block_hash.context("Block hash not found in tx receipt")? != block_hash { bail!("Transaction receipt block hash does not match block hash"); } - let currency = config.currency(); let mut operations = vec![]; @@ -219,6 +218,7 @@ async fn get_transaction_trace( hash: &H256, client: &Provider

, ) -> Result { + println!("\n\n\this ---> {:?}\n\n", client); let params = json!([ hash, {