Skip to content

Commit

Permalink
feat: Add logging for final signature in PjsExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
S0c5 committed Apr 30, 2024
1 parent 5b91696 commit af56efa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pjs-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ impl PjsExtension {
let mut signature = [0u8; 64];
let cb: Closure<dyn FnMut(JsValue)> = Closure::wrap(Box::new(move |s: JsValue| {
log::info!("Signature received {:?}", &s);
let s = get!(&s, "signature");
let s = s.as_string();
let f = s.unwrap_or_default();
log::info!("final {:?}", &f);
Self::from_hex(f.as_str(), &mut signature)
}) as Box<dyn FnMut(JsValue)>);

Expand Down

0 comments on commit af56efa

Please sign in to comment.