Skip to content

fix ci

fix ci #80

GitHub Actions / clippy failed Nov 6, 2023 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check failure on line 50 in interface/src/sign_change_pubkey.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `get_bytes` found for struct `zklink_sdk_types::prelude::ChangePubKey` in the current scope

error[E0599]: no method named `get_bytes` found for struct `zklink_sdk_types::prelude::ChangePubKey` in the current scope
   --> interface/src/sign_change_pubkey.rs:50:49
    |
50  |     tx.signature = zklink_singer.sign_musig(&tx.get_bytes())?;
    |                                                 ^^^^^^^^^ method not found in `ChangePubKey`
    |
   ::: /home/runner/work/zklink_sdk/zklink_sdk/types/src/basic_types/mod.rs:101:8
    |
101 |     fn get_bytes(&self) -> Vec<u8>;
    |        --------- the method is available for `zklink_sdk_types::prelude::ChangePubKey` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
1   + use zklink_sdk_types::basic_types::GetBytes;
    |