[MEX-580] Add on behalf features for farm SC #4257
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
dex/farm/tests/farm_setup/multi_user_farm_setup.rs|168 col 17| error[E0599]: no method named set_permissions_hub_address
found for struct farm::ContractObj
in the current scope
--> dex/farm/tests/farm_setup/multi_user_farm_setup.rs:168:20
|
168 | sc.set_permissions_hub_address(managed_address!(
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /home/runner/work/mx-exchange-sc/mx-exchange-sc/common/modules/permissions_hub_module/src/permissions_hub_module.rs:20:8
|
20 | fn set_permissions_hub_address(&self, address: ManagedAddress) {
| --------------------------- the method is available for farm::ContractObj<multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_scenario::api::impl_vh::debug_api::DebugApiBackend>>
here
|
= help: items from traits can only be used if the trait is in scope
help: there is a method permissions_hub_address
with a similar name, but with different arguments
--> /home/runner/work/mx-exchange-sc/mx-exchange-sc/common/modules/permissions_hub_module/src/permissions_hub_module.rs:6:1
|
6 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro multiversx_sc::module
(in Nightly builds, run with -Z macro-backtrace for more info)
help: trait PermissionsHubModule
which provides set_permissions_hub_address
is implemented but not in scope; perhaps you want to import it
|
4 + use permissions_hub_module::PermissionsHubModule;
|
Filtered Findings (0)
Annotations
Check failure on line 168 in dex/farm/tests/farm_setup/multi_user_farm_setup.rs
github-actions / clippy
[clippy] dex/farm/tests/farm_setup/multi_user_farm_setup.rs#L168
error[E0599]: no method named `set_permissions_hub_address` found for struct `farm::ContractObj` in the current scope
--> dex/farm/tests/farm_setup/multi_user_farm_setup.rs:168:20
|
168 | sc.set_permissions_hub_address(managed_address!(
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /home/runner/work/mx-exchange-sc/mx-exchange-sc/common/modules/permissions_hub_module/src/permissions_hub_module.rs:20:8
|
20 | fn set_permissions_hub_address(&self, address: ManagedAddress) {
| --------------------------- the method is available for `farm::ContractObj<multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_scenario::api::impl_vh::debug_api::DebugApiBackend>>` here
|
= help: items from traits can only be used if the trait is in scope
help: there is a method `permissions_hub_address` with a similar name, but with different arguments
--> /home/runner/work/mx-exchange-sc/mx-exchange-sc/common/modules/permissions_hub_module/src/permissions_hub_module.rs:6:1
|
6 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro `multiversx_sc::module` (in Nightly builds, run with -Z macro-backtrace for more info)
help: trait `PermissionsHubModule` which provides `set_permissions_hub_address` is implemented but not in scope; perhaps you want to import it
|
4 + use permissions_hub_module::PermissionsHubModule;
|
Raw output
dex/farm/tests/farm_setup/multi_user_farm_setup.rs:168:17:e:error[E0599]: no method named `set_permissions_hub_address` found for struct `farm::ContractObj` in the current scope
--> dex/farm/tests/farm_setup/multi_user_farm_setup.rs:168:20
|
168 | sc.set_permissions_hub_address(managed_address!(
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /home/runner/work/mx-exchange-sc/mx-exchange-sc/common/modules/permissions_hub_module/src/permissions_hub_module.rs:20:8
|
20 | fn set_permissions_hub_address(&self, address: ManagedAddress) {
| --------------------------- the method is available for `farm::ContractObj<multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_scenario::api::impl_vh::debug_api::DebugApiBackend>>` here
|
= help: items from traits can only be used if the trait is in scope
help: there is a method `permissions_hub_address` with a similar name, but with different arguments
--> /home/runner/work/mx-exchange-sc/mx-exchange-sc/common/modules/permissions_hub_module/src/permissions_hub_module.rs:6:1
|
6 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro `multiversx_sc::module` (in Nightly builds, run with -Z macro-backtrace for more info)
help: trait `PermissionsHubModule` which provides `set_permissions_hub_address` is implemented but not in scope; perhaps you want to import it
|
4 + use permissions_hub_module::PermissionsHubModule;
|
__END__