redgold-schema 0.1.48

Decentralized Portfolio Contracts & Data Lake
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::structs::{ExecutionResult, ResponseMetadata};
use crate::message::Response;

impl ExecutionResult {
    pub fn from_error(error: crate::structs::ErrorInfo) -> Self {
        let mut er = ExecutionResult::default();
        er.valid = false;
        er.result_metadata = Some(ResponseMetadata::from_error(error.clone()));
        er
    }
}