Get app info
(&self)
| 40 | |
| 41 | /// Get app info |
| 42 | fn get_app_info(&self) -> Result<Option<AppInfo>> { |
| 43 | let Some(app_info_bytes) = self.get_extension_bytes(PHALA_RATLS_APP_INFO)? else { |
| 44 | return Ok(None); |
| 45 | }; |
| 46 | let app_info = |
| 47 | rmp_serde::from_slice(&app_info_bytes).context("Failed to decode app info as json")?; |
| 48 | Ok(app_info) |
| 49 | } |
| 50 | } |