diff --git a/crates/delano-events/src/lib.rs b/crates/delano-events/src/lib.rs index 6a43f6f..fab01f0 100644 --- a/crates/delano-events/src/lib.rs +++ b/crates/delano-events/src/lib.rs @@ -11,7 +11,7 @@ use utils::PayloadEncoding; #[cfg(doctest)] pub struct ReadmeDoctests; -/// The Context of the event. +/// The Context of the event, `jco` compatible () /// This event is deisgned to pass through `jco` WIT, which expects variants to be {tag: _, val: _} in lower kebab-case. /// Any messages serialized by serde converts Vec to an Array, however `jco` expects TypedArrays. /// To avoid this issue, we serialize the Type bytes as base64 string to avoid missing TypedArray issue. diff --git a/crates/delano-wit-ui/src/api.rs b/crates/delano-wit-ui/src/api.rs index 89b6694..851a789 100644 --- a/crates/delano-wit-ui/src/api.rs +++ b/crates/delano-wit-ui/src/api.rs @@ -118,7 +118,6 @@ impl State { /// Generate offer from this State is there is nothing loaded. pub(crate) fn offer(&mut self) -> Result, String> { - println!("Creating Offer"); match self.loaded { Loaded::None => { // use self.credential @@ -203,8 +202,6 @@ impl State { // Emit the message wurbo_in::emit(&message); - println!("Subscribe Event Emitted."); - Ok(Some(offered)) } _ => Ok(None), diff --git a/crates/delano-wit-ui/src/lib.rs b/crates/delano-wit-ui/src/lib.rs index ccad5c0..06721c2 100644 --- a/crates/delano-wit-ui/src/lib.rs +++ b/crates/delano-wit-ui/src/lib.rs @@ -115,10 +115,8 @@ impl From<&context_types::Context> for StructContext { } // Generate an Offer with the current data context_types::Context::Generateoffer => { - let r = StructContext::from(api::State::from_latest().with_offer()) - .with_target(OUTPUT_HTML.to_string()); - println!("Rendering post-Offer HTML"); - r + StructContext::from(api::State::from_latest().with_offer()) + .with_target(OUTPUT_HTML.to_string()) } // Generate a Proof with the current data context_types::Context::Generateproof => { @@ -126,7 +124,6 @@ impl From<&context_types::Context> for StructContext { .with_target(OUTPUT_HTML.to_string()) } context_types::Context::Publishproof => { - println!("Publishing proof handler"); // emit publish event StructContext::from(api::State::from_latest().publish_proof()) .with_target(OUTPUT_HTML.to_string())