From db3e086e1140c75ddad8421b2382f74ed62e48c1 Mon Sep 17 00:00:00 2001 From: ryardley Date: Fri, 4 Oct 2024 10:20:39 +1000 Subject: [PATCH] Revert "Update packages/ciphernode/enclave/src/main.rs" This reverts commit 79de7fedf3b07f17628ceaa48c1a913cac51f9e5. --- packages/ciphernode/enclave/src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/ciphernode/enclave/src/main.rs b/packages/ciphernode/enclave/src/main.rs index 0fc0d84a..5b8fabe7 100644 --- a/packages/ciphernode/enclave/src/main.rs +++ b/packages/ciphernode/enclave/src/main.rs @@ -35,15 +35,12 @@ async fn main() -> Result<(), Box> { println!("\n\n\n\n\n{}", OWO); println!("\n\n\n\n"); let args = Args::parse(); - let address = Address::parse_checksummed(&args.address, None) - .map_err(|e| format!("Invalid node address: {}", e))?; + let address = Address::parse_checksummed(&args.address, None).expect("Invalid address"); println!("LAUNCHING CIPHERNODE: ({})", address); let registry_contract = - Address::parse_checksummed(&args.registry_contract, None) - .map_err(|e| format!("Invalid registry contract address: {}", e))?; + Address::parse_checksummed(&args.registry_contract, None).expect("Invalid address"); let enclave_contract = - Address::parse_checksummed(&args.enclave_contract, None) - .map_err(|e| format!("Invalid enclave contract address: {}", e))?; + Address::parse_checksummed(&args.enclave_contract, None).expect("Invalid address"); let (_, handle) = MainCiphernode::attach(address, &args.rpc, enclave_contract, registry_contract).await; let _ = tokio::join!(handle);