From a653aa5e4c228c40aa8daf0fe7bebec3ccbba3f5 Mon Sep 17 00:00:00 2001 From: Jan Hrubes Date: Wed, 15 Jan 2025 15:34:32 +0100 Subject: [PATCH] fix reference --- core/station/impl/src/services/cycle_manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/station/impl/src/services/cycle_manager.rs b/core/station/impl/src/services/cycle_manager.rs index c39411b94..427fd9b53 100644 --- a/core/station/impl/src/services/cycle_manager.rs +++ b/core/station/impl/src/services/cycle_manager.rs @@ -7,7 +7,7 @@ use canfund::api::ledger::{CyclesLedgerCanister, IcLedgerCanister}; use canfund::manager::options::{FundManagerOptions, ObtainCyclesOptions}; use canfund::manager::record::CanisterRecord; use canfund::manager::RegisterOpts; -use canfund::operations::obtain::{MintCycles, WithdrawFromLedger}; +use canfund::operations::obtain::{MintCycles, WithdrawFromCyclesLedger}; use canfund::FundManager; use ic_cdk::api::management_canister::main::CanisterId; use ic_cdk::print; @@ -136,7 +136,7 @@ fn get_obtain_cycle_config(strategy: &CycleObtainStrategy) -> Option { if let Some(account) = ACCOUNT_REPOSITORY.get(&AccountKey { id: *account_id }) { Some(ObtainCyclesOptions { - obtain_cycles: Arc::new(WithdrawFromLedger { + obtain_cycles: Arc::new(WithdrawFromCyclesLedger { ledger: Arc::new(CyclesLedgerCanister::new( MAINNET_CYCLES_LEDGER_CANISTER_ID, )),