feat: add submitting txs to the cli #159
clippy
23 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 23 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.80.1 (3f5fd8dd4 2024-08-06)
- cargo 1.80.1 (376290515 2024-07-16)
- clippy 0.1.80 (3f5fd8d 2024-08-06)
Annotations
Check warning on line 320 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:320:28
|
320 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 310 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:310:22
|
310 | let sk = XPrv::from_str(&sk_str).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 307 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:307:28
|
307 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 298 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:298:26
|
298 | let setoff = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 296 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:296:30
|
296 | let ciphertext = hex::decode(setoff).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 276 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:276:17
|
276 | d.try_into().unwrap()
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 255 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:255:25
|
255 | let o = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 252 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:252:30
|
252 | let ciphertext = hex::decode(obligation).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> utils/mtcs-intent/src/main.rs:6:5
|
6 | clippy::unwrap_used,
| ^^^^^^^^^^^^^^^^^^^
Check warning on line 320 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:320:28
|
320 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 310 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:310:22
|
310 | let sk = XPrv::from_str(&sk_str).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 307 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:307:28
|
307 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 298 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:298:26
|
298 | let setoff = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 296 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:296:30
|
296 | let ciphertext = hex::decode(setoff).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 276 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:276:17
|
276 | d.try_into().unwrap()
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 255 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:255:25
|
255 | let o = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
Check warning on line 252 in utils/mtcs-intent/src/main.rs
github-actions / clippy
used `unwrap()` on a `Result` value
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:252:30
|
252 | let ciphertext = hex::decode(obligation).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> utils/mtcs-intent/src/main.rs:6:5
|
6 | clippy::unwrap_used,
| ^^^^^^^^^^^^^^^^^^^
Check warning on line 188 in cosmwasm/packages/tcbinfo/src/contract.rs
github-actions / clippy
use of deprecated function `cosmwasm_std::testing::mock_info`: This is inconvenient and unsafe. Use message_info instead.
warning: use of deprecated function `cosmwasm_std::testing::mock_info`: This is inconvenient and unsafe. Use message_info instead.
--> cosmwasm/packages/tcbinfo/src/contract.rs:188:20
|
188 | let info = mock_info("creator", &coins(1000, "earth"));
| ^^^^^^^^^
Check warning on line 175 in cosmwasm/packages/tcbinfo/src/contract.rs
github-actions / clippy
use of deprecated function `cosmwasm_std::testing::mock_info`: This is inconvenient and unsafe. Use message_info instead.
warning: use of deprecated function `cosmwasm_std::testing::mock_info`: This is inconvenient and unsafe. Use message_info instead.
--> cosmwasm/packages/tcbinfo/src/contract.rs:175:20
|
175 | let info = mock_info("creator", &coins(1000, "earth"));
| ^^^^^^^^^
Check warning on line 163 in cosmwasm/packages/tcbinfo/src/contract.rs
github-actions / clippy
use of deprecated function `cosmwasm_std::testing::mock_info`: This is inconvenient and unsafe. Use message_info instead.
warning: use of deprecated function `cosmwasm_std::testing::mock_info`: This is inconvenient and unsafe. Use message_info instead.
--> cosmwasm/packages/tcbinfo/src/contract.rs:163:48
|
163 | testing::{mock_dependencies, mock_env, mock_info},
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
Check warning on line 8 in cosmwasm/packages/tcbinfo/src/contract.rs
github-actions / clippy
unused import: `TcbInfo as McTcbInfo`
warning: unused import: `TcbInfo as McTcbInfo`
--> cosmwasm/packages/tcbinfo/src/contract.rs:8:72
|
8 | use mc_attestation_verifier::{CertificateChainVerifier, SignedTcbInfo, TcbInfo as McTcbInfo};
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check warning on line 22 in utils/cycles-sync/src/wasmd_client.rs
github-actions / clippy
methods `query_raw`, `query_tx`, `deploy`, and `init` are never used
warning: methods `query_raw`, `query_tx`, `deploy`, and `init` are never used
--> utils/cycles-sync/src/wasmd_client.rs:22:8
|
9 | pub trait WasmdClient {
| ----------- methods in this trait
...
22 | fn query_raw<R: DeserializeOwned + Default>(
| ^^^^^^^^^
...
28 | fn query_tx<R: DeserializeOwned + Default>(&self, txhash: &str) -> Result<R, Self::Error>;
| ^^^^^^^^
...
40 | fn deploy<M: ToString>(
| ^^^^^^
...
47 | fn init<M: ToString>(
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 22 in utils/cycles-sync/src/wasmd_client.rs
github-actions / clippy
methods `query_raw`, `query_tx`, `deploy`, and `init` are never used
warning: methods `query_raw`, `query_tx`, `deploy`, and `init` are never used
--> utils/cycles-sync/src/wasmd_client.rs:22:8
|
9 | pub trait WasmdClient {
| ----------- methods in this trait
...
22 | fn query_raw<R: DeserializeOwned + Default>(
| ^^^^^^^^^
...
28 | fn query_tx<R: DeserializeOwned + Default>(&self, txhash: &str) -> Result<R, Self::Error>;
| ^^^^^^^^
...
40 | fn deploy<M: ToString>(
| ^^^^^^
...
47 | fn init<M: ToString>(
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 8 in cosmwasm/packages/tcbinfo/src/contract.rs
github-actions / clippy
unused import: `TcbInfo as McTcbInfo`
warning: unused import: `TcbInfo as McTcbInfo`
--> cosmwasm/packages/tcbinfo/src/contract.rs:8:72
|
8 | use mc_attestation_verifier::{CertificateChainVerifier, SignedTcbInfo, TcbInfo as McTcbInfo};
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default