redgold-schema 0.1.12

A relative proof conflict resolution & irreversibility service with trust modeling custodial pooling and executor contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::response_metadata;
use crate::structs::{ExecutionResult, ResponseMetadata};

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
    }
}