@@ -44,7 +44,9 @@ pub fn start_btc_adapter_actor(
4444 shutdown_controller : Addr < ShutdownController > ,
4545 btc_adapter_pid_file_path : PathBuf ,
4646) -> DfxResult < Recipient < BtcAdapterReadySubscribe > > {
47- let btc_adapter_path = env. get_cache ( ) . get_binary_command_path ( "ic-btc-adapter" ) ?;
47+ let btc_adapter_path = env
48+ . get_cache ( )
49+ . get_binary_command_path ( env, "ic-btc-adapter" ) ?;
4850
4951 let actor_config = btc_adapter:: Config {
5052 btc_adapter_path,
@@ -69,7 +71,7 @@ pub fn start_canister_http_adapter_actor(
6971) -> DfxResult < Recipient < CanisterHttpAdapterReadySubscribe > > {
7072 let adapter_path = env
7173 . get_cache ( )
72- . get_binary_command_path ( "ic-https-outcalls-adapter" ) ?;
74+ . get_binary_command_path ( env , "ic-https-outcalls-adapter" ) ?;
7375
7476 let actor_config = canister_http_adapter:: Config {
7577 adapter_path,
@@ -133,8 +135,8 @@ pub fn start_replica_actor(
133135 canister_http_adapter_ready_subscribe : Option < Recipient < CanisterHttpAdapterReadySubscribe > > ,
134136) -> DfxResult < Addr < Replica > > {
135137 // get binary path
136- let replica_path = env. get_cache ( ) . get_binary_command_path ( "replica" ) ?;
137- let ic_starter_path = env. get_cache ( ) . get_binary_command_path ( "ic-starter" ) ?;
138+ let replica_path = env. get_cache ( ) . get_binary_command_path ( env , "replica" ) ?;
139+ let ic_starter_path = env. get_cache ( ) . get_binary_command_path ( env , "ic-starter" ) ?;
138140
139141 setup_replica_env ( local_server_descriptor, & replica_config) ?;
140142 let replica_pid_path = local_server_descriptor. replica_pid_path ( ) ;
@@ -169,7 +171,7 @@ pub fn start_pocketic_proxy_actor(
169171 pocketic_proxy_pid_path : PathBuf ,
170172 pocketic_proxy_port_path : PathBuf ,
171173) -> DfxResult < Addr < PocketIcProxy > > {
172- let pocketic_proxy_path = env. get_cache ( ) . get_binary_command_path ( "pocket-ic" ) ?;
174+ let pocketic_proxy_path = env. get_cache ( ) . get_binary_command_path ( env , "pocket-ic" ) ?;
173175 let actor_config = pocketic_proxy:: Config {
174176 logger : Some ( env. get_logger ( ) . clone ( ) ) ,
175177 port_ready_subscribe,
@@ -190,7 +192,7 @@ pub fn start_pocketic_actor(
190192 shutdown_controller : Addr < ShutdownController > ,
191193 pocketic_port_path : PathBuf ,
192194) -> DfxResult < Addr < PocketIc > > {
193- let pocketic_path = env. get_cache ( ) . get_binary_command_path ( "pocket-ic" ) ?;
195+ let pocketic_path = env. get_cache ( ) . get_binary_command_path ( env , "pocket-ic" ) ?;
194196
195197 // Touch the port file. This ensures it is empty prior to
196198 // handing it over to PocketIC. If we read the file and it has
0 commit comments