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);