pub fn func_play_period(ctx: &ScFuncContext, f: &PlayPeriodContext) {

    // Since we are sure that the 'playPeriod' parameter actually exists we can
    // retrieve its actual value into an i32 value.
    let play_period: i32 = f.params.play_period().value();

    // Require that the play period (in seconds) is not ridiculously low.
    // Otherwise panic out with an error message.
    ctx.require(play_period >= 10, "invalid play period");

    // Now we set the corresponding variable 'playPeriod' in state storage.
    f.state.play_period().set_value(play_period);
}
// 'playPeriod' can be used by the contract creator to set the length of a betting round
// to a different value than the default value, which is 120 seconds.
'playPeriod' can be used by the contract creator to set the length of a betting round
to a different value than the default value, which is 120 seconds.
' playPeriod ' can be used by the contract creator to set the length of a betting round to a different value than the default value which is 120 seconds .
pub fn func_play_period(ctx: &ScFuncContext, f: &PlayPeriodContext) {
    // Since we are sure that the 'playPeriod' parameter actually exists we can
    // retrieve its actual value into an i32 value.
    let play_period: i32 = f.params.play_period().value();
    // Require that the play period (in seconds) is not ridiculously low.
    // Otherwise panic out with an error message.
    ctx.require(play_period >= 10, "invalid play period");
    // Now we set the corresponding variable 'playPeriod' in state storage.
    f.state.play_period().set_value(play_period);
}
pub fn func_play_period ( ctx : & ScFuncContext , f : & PlayPeriodContext ) { // Since we are sure that the 'playPeriod' parameter actually exists we can // retrieve its actual value into an i32 value. let play_period : i32 = f . params . play_period ( ) . value ( ) ; // Require that the play period (in seconds) is not ridiculously low. // Otherwise panic out with an error message. ctx . require ( play_period >= 10 , " " ) ; // Now we set the corresponding variable 'playPeriod' in state storage. f . state . play_period ( ) . set_value ( play_period ) ; }
'playPeriod' can be used by the contract creator to set the length of a betting round
to a different value than the default value, which is 120 seconds.
' playPeriod ' can be used by the contract creator to set the length of a betting round to a different value than the default value which is 120 seconds .
ctx
&ScFuncContext
f
&PlayPeriodContext
ctx
&ScFuncContext
f
&PlayPeriodContext