Skip to content

feat: wallet integration call contract #711

feat: wallet integration call contract

feat: wallet integration call contract #711

GitHub Actions / clippy failed Dec 13, 2024 in 1s

clippy

1 error, 83 warnings

Details

Results

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

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check failure on line 115 in crates/pop-contracts/src/call.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `context` found for enum `std::result::Result` in the current scope

error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope
   --> crates/pop-contracts/src/call.rs:115:6
    |
112 |               let value = call_exec
    |  _________________________-
113 | |                 .transcoder()
114 | |                 .decode_message_return(call_exec.message(), &mut &ret_val.data[..])
115 | |                 .context(format!("Failed to decode return value {:?}", &ret_val))?;
    | |_________________-^^^^^^^
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.94/src/lib.rs:618:8
    |
618 |       fn context<C>(self, context: C) -> Result<T, Error>
    |          ------- the method is available for `std::result::Result<contract_transcode::Value, anyhow::Error>` here
    |
note: the method `context` exists on the type `anyhow::Error`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.94/src/error.rs:318:5
    |
318 | /     pub fn context<C>(self, context: C) -> Self
319 | |     where
320 | |         C: Display + Send + Sync + 'static,
    | |___________________________________________^
    = help: items from traits can only be used if the trait is in scope
help: use the `?` operator to extract the `anyhow::Error` value, propagating a `Result::Err` value to the caller
    |
114 |                 .decode_message_return(call_exec.message(), &mut &ret_val.data[..])?
    |                                                                                    +
help: trait `Context` which provides `context` is implemented but not in scope; perhaps you want to import it
    |
3   + use anyhow::Context;
    |
help: there is a method `with_context` with a similar name
    |
115 |                 .with_context(format!("Failed to decode return value {:?}", &ret_val))?;
    |                  ~~~~~~~~~~~~

Check warning on line 249 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> crates/pop-parachains/src/templates.rs:249:2
    |
249 |     pub fn license(&self) -> Option<&str> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 245 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> crates/pop-parachains/src/templates.rs:245:2
    |
245 |     pub fn is_audited(&self) -> bool {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 239 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> crates/pop-parachains/src/templates.rs:239:2
    |
239 |     pub fn is_supported_version(&self, version: &str) -> bool {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 235 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> crates/pop-parachains/src/templates.rs:235:2
    |
235 |     pub fn supported_versions(&self) -> Option<Vec<&str>> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 196 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
   --> crates/pop-parachains/src/templates.rs:196:2
    |
196 |     DeprecatedOpenZeppelinGeneric,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 153 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
   --> crates/pop-parachains/src/templates.rs:153:2
    |
153 |     OpenZeppelinEVM,
    |     ^^^^^^^^^^^^^^^

Check warning on line 138 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
   --> crates/pop-parachains/src/templates.rs:138:2
    |
138 |     OpenZeppelinGeneric,
    |     ^^^^^^^^^^^^^^^^^^^

Check warning on line 51 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
  --> crates/pop-parachains/src/templates.rs:51:2
   |
51 |     pub initial_endowment: String,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 50 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
  --> crates/pop-parachains/src/templates.rs:50:2
   |
50 |     pub decimals: u8,
   |     ^^^^^^^^^^^^^^^^

Check warning on line 49 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
  --> crates/pop-parachains/src/templates.rs:49:2
   |
49 |     pub symbol: String,
   |     ^^^^^^^^^^^^^^^^^^

Check warning on line 33 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/templates.rs:33:2
   |
33 |     Parity,
   |     ^^^^^^

Check warning on line 26 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/templates.rs:26:2
   |
26 |     OpenZeppelin,
   |     ^^^^^^^^^^^^

Check warning on line 19 in crates/pop-parachains/src/templates.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/templates.rs:19:2
   |
19 |     Pop,
   |     ^^^

Check warning on line 86 in crates/pop-parachains/src/new_pallet/new_pallet_options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/new_pallet/new_pallet_options.rs:86:2
   |
86 |     CustomOrigin,
   |     ^^^^^^^^^^^^

Check warning on line 84 in crates/pop-parachains/src/new_pallet/new_pallet_options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/new_pallet/new_pallet_options.rs:84:2
   |
84 |     GenesisConfig,
   |     ^^^^^^^^^^^^^

Check warning on line 82 in crates/pop-parachains/src/new_pallet/new_pallet_options.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/new_pallet/new_pallet_options.rs:82:2
   |
82 |     DefaultConfig,
   |     ^^^^^^^^^^^^^

Check warning on line 70 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:70:2
   |
70 |     WorkspaceLocate,
   |     ^^^^^^^^^^^^^^^

Check warning on line 68 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:68:2
   |
68 |     UnsupportedCommand(String),
   |     ^^^^^^^^^^^^^^^^^^

Check warning on line 66 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:66:2
   |
66 |     TomlError(#[from] toml_edit::de::Error),
   |     ^^^^^^^^^

Check warning on line 64 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:64:2
   |
64 |     SourcingError(#[from] pop_common::sourcing::Error),
   |     ^^^^^^^^^^^^^

Check warning on line 62 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:62:2
   |
62 |     RustfmtError(std::io::Error),
   |     ^^^^^^^^^^^^

Check warning on line 60 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:60:2
   |
60 |     PathError,
   |     ^^^^^^^^^

Check warning on line 52 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:52:2
   |
52 |     PalletDirCreation,
   |     ^^^^^^^^^^^^^^^^^

Check warning on line 50 in crates/pop-parachains/src/errors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> crates/pop-parachains/src/errors.rs:50:2
   |
50 |     OrchestratorError(#[from] OrchestratorError),
   |     ^^^^^^^^^^^^^^^^^