@@ -24,7 +24,7 @@ use crate::outside::{
24
24
} ;
25
25
use crate :: peer_container:: {
26
26
report_coin_changes_to_peer, FullCoinSetAdapter , GameCradle , MessagePeerQueue , MessagePipe ,
27
- SynchronousGameCradle , WatchEntry , WatchReport ,
27
+ SynchronousGameCradle , SynchronousGameCradleConfig , WatchEntry , WatchReport ,
28
28
} ;
29
29
30
30
use crate :: tests:: calpoker:: test_moves_1;
@@ -828,23 +828,27 @@ fn run_calpoker_container_with_action_list(allocator: &mut AllocEncoder, moves:
828
828
829
829
let cradle1 = SynchronousGameCradle :: new (
830
830
& mut rng,
831
- game_type_map. clone ( ) ,
832
- true ,
833
- & identities[ 0 ] ,
834
- Amount :: new ( 100 ) ,
835
- Amount :: new ( 100 ) ,
836
- Timeout :: new ( 100 ) ,
837
- id1. puzzle_hash . clone ( ) ,
831
+ SynchronousGameCradleConfig {
832
+ game_types : game_type_map. clone ( ) ,
833
+ have_potato : true ,
834
+ identity : & identities[ 0 ] ,
835
+ my_contribution : Amount :: new ( 100 ) ,
836
+ their_contribution : Amount :: new ( 100 ) ,
837
+ channel_timeout : Timeout :: new ( 100 ) ,
838
+ reward_puzzle_hash : id1. puzzle_hash . clone ( ) ,
839
+ } ,
838
840
) ;
839
841
let cradle2 = SynchronousGameCradle :: new (
840
842
& mut rng,
841
- game_type_map. clone ( ) ,
842
- false ,
843
- & identities[ 1 ] ,
844
- Amount :: new ( 100 ) ,
845
- Amount :: new ( 100 ) ,
846
- Timeout :: new ( 100 ) ,
847
- id2. puzzle_hash . clone ( ) ,
843
+ SynchronousGameCradleConfig {
844
+ game_types : game_type_map. clone ( ) ,
845
+ have_potato : false ,
846
+ identity : & identities[ 1 ] ,
847
+ my_contribution : Amount :: new ( 100 ) ,
848
+ their_contribution : Amount :: new ( 100 ) ,
849
+ channel_timeout : Timeout :: new ( 100 ) ,
850
+ reward_puzzle_hash : id2. puzzle_hash . clone ( ) ,
851
+ } ,
848
852
) ;
849
853
let mut cradles = [ cradle1, cradle2] ;
850
854
let mut game_ids = Vec :: default ( ) ;
0 commit comments