@@ -141,9 +141,6 @@ async fn cvm_devnet_case() {
141
141
)
142
142
. unwrap ( ) ;
143
143
144
-
145
-
146
-
147
144
let active_orders = vec ! [ a_to_b, b_to_a] ;
148
145
let alice = from_mnemonic (
149
146
"document prefer nurse marriage flavor cheese west when knee drink sorry minimum thunder tilt cherry behave cute stove elder couch badge gown coral expire" ,
@@ -157,9 +154,9 @@ async fn cvm_devnet_case() {
157
154
sequence : 1 ,
158
155
} ,
159
156
} ;
160
- let force_config = cw_cvm_outpost ::
157
+
161
158
let router = "shortest_path" ;
162
- let cvm_glt = Some ( CvmGlt {
159
+ let cvm_glt = CvmGlt {
163
160
network_to_networks : vec ! [
164
161
NetworkToNetworkItem :: new( 1 . into( ) , 2 . into( ) , OtherNetworkItem :: new( ) ) ,
165
162
NetworkToNetworkItem :: new( 2 . into( ) , 1 . into( ) , OtherNetworkItem :: new( ) ) ,
@@ -243,9 +240,21 @@ async fn cvm_devnet_case() {
243
240
21 . into( ) ,
244
241
) ,
245
242
] ,
246
- } ) ;
243
+ } ;
244
+
245
+ let mut config_messages = vec ! [ ] ;
246
+
247
+ for network_item in cvm_glt {
248
+ let config_message = cw_cvm_outpost:: msg:: ConfigSubMsg :: ForceNetwork ( network_item) ;
249
+ config_messages. push ( config_message) ;
250
+ }
251
+
252
+ let force_config = cw_cvm_outpost:: msg:: ExecuteMsg :: Config (
253
+ cw_cvm_outpost:: msg:: ConfigSubMsg :: Force ( config_messages) ,
254
+ ) ;
255
+
247
256
let solution =
248
- mantis_node:: mantis:: blackbox:: solve :: < True > ( active_orders, & alice, & tip, cvm_glt, router)
257
+ mantis_node:: mantis:: blackbox:: solve :: < True > ( active_orders, & alice, & tip, cvm_glt. into ( ) , router)
249
258
. await ;
250
259
251
260
panic ! ( "solution: {:?}" , solution) ;
0 commit comments