diff --git a/src/data.rs b/src/data.rs index 594f9b9..4559116 100644 --- a/src/data.rs +++ b/src/data.rs @@ -1322,7 +1322,7 @@ impl BrainData { pub fn find_app_contracts_by_operator(&self, wallet: &str) -> Vec { debug!("Searching contracts for operator {wallet}"); let nodes = match self.operators.get(wallet) { - Some(op) => op.vm_nodes.clone(), + Some(op) => op.app_nodes.clone(), None => return Vec::new(), }; let contracts: Vec = self diff --git a/src/grpc.rs b/src/grpc.rs index 6e4ce35..7584dcb 100644 --- a/src/grpc.rs +++ b/src/grpc.rs @@ -722,7 +722,7 @@ impl BrainAppDaemon for BrainAppDaemonMock { Some(detee_shared::app_proto::daemon_message_app::Msg::AppNodeResources( node_resource, )) => self.data.submit_app_node_resources(node_resource), - _ => { + None => { dbg!("None"); } },