Skip to content

Commit

Permalink
uncomment
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojJiSharma committed Dec 7, 2023
1 parent 9c4d088 commit bdca32c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
50 changes: 25 additions & 25 deletions chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions chains/ethereum/server/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ where
block.clone(),
transaction,
)
.await;
transactions.push(transaction.unwrap());
.await?;
transactions.push(transaction);
}
Ok(Block {
block_identifier: BlockIdentifier {
Expand Down
2 changes: 1 addition & 1 deletion chains/ethereum/server/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ pub async fn get_transaction<P: JsonRpcClient, T: Send>(
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![];
Expand Down Expand Up @@ -219,6 +218,7 @@ async fn get_transaction_trace<P: JsonRpcClient>(
hash: &H256,
client: &Provider<P>,
) -> Result<Trace> {
println!("\n\n\this ---> {:?}\n\n", client);
let params = json!([
hash,
{
Expand Down

0 comments on commit bdca32c

Please sign in to comment.