File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,16 @@ impl MotokoBuilder {
47
47
pool : & CanisterPool ,
48
48
canister_info : & CanisterInfo ,
49
49
config : & BuildConfig ,
50
- motoko_info : & MotokoCanisterInfo ,
51
50
id_map : & BTreeMap < String , String > , // TODO: I feel that this variable should not be here.
52
51
rev_id_map : & BTreeMap < String , String > , // TODO: I feel that this variable should not be here.
53
52
cache : & dyn Cache ,
54
53
) -> DfxResult < BuildOutput > {
55
- let output_wasm_path = motoko_info. get_output_wasm_path ( ) ;
56
-
54
+ let motoko_info = canister_info. as_info :: < MotokoCanisterInfo > ( ) ?;
57
55
let input_path = motoko_info. get_main_path ( ) ;
58
56
let profile = config. profile ;
57
+
58
+ let output_wasm_path = motoko_info. get_output_wasm_path ( ) ;
59
+
59
60
let package_arguments =
60
61
package_arguments:: load ( cache, motoko_info. get_packtool ( ) ) ?;
61
62
let mut package_arguments_map = BTreeMap :: < String , String > :: new ( ) ; // TODO: Can we deal without cloning strings?
@@ -334,7 +335,6 @@ impl CanisterBuilder for MotokoBuilder {
334
335
pool,
335
336
canister_info,
336
337
config,
337
- & motoko_info,
338
338
& id_map,
339
339
& rev_id_map,
340
340
cache. as_ref ( ) ,
You can’t perform that action at this time.
0 commit comments