Skip to content

Commit

Permalink
Revert "Update packages/ciphernode/enclave/src/main.rs"
Browse files Browse the repository at this point in the history
This reverts commit 79de7fe.
  • Loading branch information
ryardley committed Oct 4, 2024
1 parent 79de7fe commit db3e086
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/ciphernode/enclave/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
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);
Expand Down

0 comments on commit db3e086

Please sign in to comment.