You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: `std::result::Result<Melted, cashu_sdk::wallet::Error>` is not a future
--> bindings/cashu-sdk-js/src/wallet.rs:154:14
|
154 | .await
| -^^^^^
| ||
| |`std::result::Result<Melted, cashu_sdk::wallet::Error>` is not a future
| help: remove the `.await`
|
= help: the trait `Future` is not implemented for `std::result::Result<Melted, cashu_sdk::wallet::Error>`
= note: std::result::Result<Melted, cashu_sdk::wallet::Error> must be a future or must implement `IntoFuture` to be awaited
= note: required for `std::result::Result<Melted, cashu_sdk::wallet::Error>` to implement `IntoFuture`
warning: call to `.deref()` on a reference in this situation does nothing
error[E0308]: mismatched types
--> bindings/cashu-sdk-js/src/wallet.rs:39:32
|
39 | inner: Wallet::new(client.deref().clone(), mint_keys.deref().clone()),
| ----------- ^^^^^^^^^^^^^^^^^^^^^^ expected `Client`, found a different `Client`
| |
| arguments to this function are incorrect
|
note: associated function defined here
expected result
cloning the repo and running just build without any feature flags compiles the workspace
JsClient.deref() returns a non-blocking client, which seems to be correct. But Wallet::new() expects a blocking client. I don't understand why this happens since blocking is an optional feature, that is not enabled by default.
The text was updated successfully, but these errors were encountered:
steps to reproduce:
git clone https://github.com/thesimplekid/cashu-crab.git
just build
-> compile error:
expected result
cloning the repo and running just build without any feature flags compiles the workspace
JsClient.deref() returns a non-blocking client, which seems to be correct. But Wallet::new() expects a blocking client. I don't understand why this happens since blocking is an optional feature, that is not enabled by default.
The text was updated successfully, but these errors were encountered: