Skip to content

Commit

Permalink
chore: remove unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Jan 6, 2025
1 parent 13da50a commit e8d712d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/chainio/clients/elcontracts/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e8d712d

Please sign in to comment.