russellwmy / yew-dapp-examples

Build Dapp with yew.rs
8 stars 4 forks source link

error[E0599]: no method named `into_serde` found for struct `JsValue` in the current scope #6

Closed hackphobic closed 1 year ago

hackphobic commented 1 year ago

I can't get this to compile. plz help

Compiling solana-dapp-example v0.1.0 (C:\Users\PieSoul\abra\yew-dapp-examples\solana-dapp-example)
error[E0599]: no method named `into_serde` found for struct `JsValue` in the current scope
  --> src\phantom_connect.rs:37:66
   |
37 |                         let response: ConnectResponse = response.into_serde().unwrap();
   |                                                                  ^^^^^^^^^^ method not found in `JsValue`
hackphobic commented 1 year ago

into_serde is deprecated https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html#method.into_serde