From e8d712d9572e407479462130261ef5bd43e180a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:09:54 -0300 Subject: [PATCH] chore: remove unwrap --- crates/chainio/clients/elcontracts/src/reader.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/chainio/clients/elcontracts/src/reader.rs b/crates/chainio/clients/elcontracts/src/reader.rs index d13fe791..a029c891 100644 --- a/crates/chainio/clients/elcontracts/src/reader.rs +++ b/crates/chainio/clients/elcontracts/src/reader.rs @@ -80,21 +80,21 @@ impl ELChainReader { let contract_delegation_manager = DelegationManager::new(delegation_manager, provider); - let DelegationManager::allocationManagerReturn { - _0: allocation_manager, - } = contract_delegation_manager + // TODO: remove unwrap + let allocation_manager = contract_delegation_manager .allocationManager() .call() .await - .unwrap(); + .unwrap() + ._0; - let DelegationManager::permissionControllerReturn { - _0: permission_controller, - } = contract_delegation_manager + // TODO: remove unwrap + let permission_controller = contract_delegation_manager .permissionController() .call() .await - .unwrap(); + .unwrap() + ._0; Ok(Self { _logger,