fn call_get_arg(args: RuntimeArgs) -> Result<(), String> {
    let exec_request =
        ExecuteRequestBuilder::standard(*DEFAULT_ACCOUNT_ADDR, CONTRACT_GET_ARG, args).build();
    let mut builder = InMemoryWasmTestBuilder::default();
    builder
        .run_genesis(&DEFAULT_RUN_GENESIS_REQUEST)
        .exec(exec_request)
        .commit();

    if !builder.is_error() {
        return Ok(());
    }

    let response = builder.get_exec_result(0).expect("should have a response");

    let error_message = utils::get_error_message(response);

    Err(error_message)
}
/// Calls get_arg contract and returns Ok(()) in case no error, or String which is the error message
/// returned by the engine
Calls get_arg contract and returns Ok(()) in case no error, or String which is the error message
returned by the engine
Calls get_arg contract and returns Ok (( )) in case no error or String which is the error message returned by the engine
fn call_get_arg(args: RuntimeArgs) -> Result<(), String> {
    let exec_request =
        ExecuteRequestBuilder::standard(*DEFAULT_ACCOUNT_ADDR, CONTRACT_GET_ARG, args).build();
    let mut builder = InMemoryWasmTestBuilder::default();
    builder
        .run_genesis(&DEFAULT_RUN_GENESIS_REQUEST)
        .exec(exec_request)
        .commit();
    if !builder.is_error() {
        return Ok(());
    }
    let response = builder.get_exec_result(0).expect("should have a response");
    let error_message = utils::get_error_message(response);
    Err(error_message)
}
fn call_get_arg ( args : RuntimeArgs ) -> Result < ( ) , String > { let exec_request = ExecuteRequestBuilder :: standard ( * DEFAULT_ACCOUNT_ADDR , CONTRACT_GET_ARG , args ) . build ( ) ; let mut builder = InMemoryWasmTestBuilder :: default ( ) ; builder . run_genesis ( & DEFAULT_RUN_GENESIS_REQUEST ) . exec ( exec_request ) . commit ( ) ; if ! builder . is_error ( ) { return Ok ( ( ) ) ; } let response = builder . get_exec_result ( 0 ) . expect ( " " ) ; let error_message = utils :: get_error_message ( response ) ; Err ( error_message ) }
Calls get_arg contract and returns Ok(()) in case no error, or String which is the error message
returned by the engine
Calls get_arg contract and returns Ok (( )) in case no error or String which is the error message returned by the engine
args
RuntimeArgs
args
RuntimeArgs