Contracts upgrade 0.54.0 (1) #652
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
contracts/adder/interact/src/basic_interact.rs|65 col 68| error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> contracts/adder/interact/src/basic_interact.rs:65:30
|
65 | let mut interactor = Interactor::new(config.gateway_uri(), config.use_chain_simulator())
| ^^^^^^^^^^^^^^^ ---------------------------- unexpected argument #2 of type bool
|
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/multiversx-sc-snippets-0.54.3/src/interactor/interactor_base.rs:40:18
|
40 | pub async fn new(gateway_uri: &str) -> Self {
| ^^^
help: remove the extra argument
|
65 - let mut interactor = Interactor::new(config.gateway_uri(), config.use_chain_simulator())
65 + let mut interactor = Interactor::new(config.gateway_uri())
|
Filtered Findings (0)
Annotations
Check failure on line 65 in contracts/adder/interact/src/basic_interact.rs
github-actions / clippy
[clippy] contracts/adder/interact/src/basic_interact.rs#L65
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> contracts/adder/interact/src/basic_interact.rs:65:30
|
65 | let mut interactor = Interactor::new(config.gateway_uri(), config.use_chain_simulator())
| ^^^^^^^^^^^^^^^ ---------------------------- unexpected argument #2 of type `bool`
|
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/multiversx-sc-snippets-0.54.3/src/interactor/interactor_base.rs:40:18
|
40 | pub async fn new(gateway_uri: &str) -> Self {
| ^^^
help: remove the extra argument
|
65 - let mut interactor = Interactor::new(config.gateway_uri(), config.use_chain_simulator())
65 + let mut interactor = Interactor::new(config.gateway_uri())
|
Raw output
contracts/adder/interact/src/basic_interact.rs:65:68:e:error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> contracts/adder/interact/src/basic_interact.rs:65:30
|
65 | let mut interactor = Interactor::new(config.gateway_uri(), config.use_chain_simulator())
| ^^^^^^^^^^^^^^^ ---------------------------- unexpected argument #2 of type `bool`
|
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/multiversx-sc-snippets-0.54.3/src/interactor/interactor_base.rs:40:18
|
40 | pub async fn new(gateway_uri: &str) -> Self {
| ^^^
help: remove the extra argument
|
65 - let mut interactor = Interactor::new(config.gateway_uri(), config.use_chain_simulator())
65 + let mut interactor = Interactor::new(config.gateway_uri())
|
__END__