bitmask-stack / bitmask-stack/bitmask-core
Compilation error when use synchronize_wallet
- Dominant language
- Rust
- Stars
- 95
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
I comment the `psbt` and `sign_psbt` endpoints in bitmaskd because the compilation fails. See error below:
```rust
Compiling bitmask-core v0.6.0-beta.5 (/home/****/projects/contrib/bitmask-core)
error[E0277]: the trait bound `fn(TypedHeader>, Json) -> impl std::future::Future> {psbt}: Handler<_, _, _>` is not satisfied
--> src/bin/bitmaskd.rs:274:30
|
274 | .route("/psbt", post(psbt))
| ---- ^^^^ the trait `Handler<_, _, _>` is not implemented for fn item `fn(TypedHeader>, Json) -> impl std::future::Future> {psbt}`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `Handler`:
as Handler>
as Handler<(), S, B>>
note: required by a bound in `post`
--> /home/*****/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-0.6.18/src/routing/method_routing.rs:407:1
|
407 | top_level_handler_fn!(post, POST);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `post`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `fn(TypedHeader>, Json) -> impl std::future::Future> {sign_psbt}: Handler<_, _, _>` is not satisfied
--> src/bin/bitmaskd.rs:275:30
|
275 | .route("/sign", post(sign_psbt))
| ---- ^^^^^^^^^ the trait `Handler<_, _, _>` is not implemented for fn item `fn(TypedHeader>, Json) -> impl std::future::Future> {sign_psbt}`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `Handler`:
as Handler>
as Handler<(), S, B>>
note: required by a bound in `post`
--> /home/*****/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-0.6.18/src/routing/method_routing.rs:407:1
|
407 | top_level_handler_fn!(post, POST);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `post`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
```
After investigate, I noticed this occurs because I using the method `synchronize_wallet`. Do you have any idea why this happens?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.