Skip to content

Enshrine Esdt + Token Handler #33

Enshrine Esdt + Token Handler

Enshrine Esdt + Token Handler #33

GitHub Actions / clippy failed Jun 25, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (4)

esdt-safe/src/to_sovereign/events.rs|1 col 19| warning: unused imports: BatchId, TxId, transaction_status::TransactionStatus
--> esdt-safe/src/to_sovereign/events.rs:1:19
|
1 | use transaction::{transaction_status::TransactionStatus, BatchId, OperationData, TxId};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^
|
= note: #[warn(unused_imports)] on by default
esdt-safe/src/to_sovereign/events.rs|1 col 19| warning: unused imports: BatchId, TxId, transaction_status::TransactionStatus
--> esdt-safe/src/to_sovereign/events.rs:1:19
|
1 | use transaction::{transaction_status::TransactionStatus, BatchId, OperationData, TxId};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^
|
= note: #[warn(unused_imports)] on by default
esdt-safe/tests/bridge_blackbox_tests.rs|325 col 9| error[E0599]: no method named header_verifier_address found for struct EsdtSafeProxyMethods in the current scope
--> esdt-safe/tests/bridge_blackbox_tests.rs:329:14
|
325 | / self.world
326 | | .query()
327 | | .to(BRIDGE_ADDRESS)
328 | | .typed(esdt_safe_proxy::EsdtSafeProxy)
329 | | .header_verifier_address()
| |-^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the full type name has been written to '/home/runner/work/mx-sovereign-sc/mx-sovereign-sc/target/debug/deps/bridge_blackbox_tests-6336499e6b2d8086.long-type-10248601507512331569.txt'
= note: consider using --verbose to print the full type name to the console
help: there is a method set_header_verifier_address with a similar name, but with different arguments
--> /home/runner/work/mx-sovereign-sc/mx-sovereign-sc/esdt-safe/src/esdt_safe_proxy.rs:101:5
|
101 | / pub fn set_header_verifier_address<
102 | | Arg0: ProxyArg<ManagedAddressEnv::Api>,
103 | | >(
104 | | self,
105 | | header_verifier_address: Arg0,
106 | | ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
| |________________________________________________________^
esdt-safe/tests/bridge_blackbox_tests.rs|339 col 9| error[E0599]: no method named pending_hashes found for struct HeaderverifierProxyMethods in the current scope
--> esdt-safe/tests/bridge_blackbox_tests.rs:343:14
|
339 | / self.world
340 | | .query()
341 | | .to(HEADER_VERIFIER_ADDRESS)
342 | | .typed(header_verifier_proxy::HeaderverifierProxy)
343 | | .pending_hashes(hash_of_hashes)
| | -^^^^^^^^^^^^^^ method not found in HeaderverifierProxyMethods<ScenarioEnvQuery<'_>, (), TestSCAddress<'_>, ()>
| |
|
|
|
= note: the full type name has been written to '/home/runner/work/mx-sovereign-sc/mx-sovereign-sc/target/debug/deps/bridge_blackbox_tests-6336499e6b2d8086.long-type-16737336614906713957.txt'
= note: consider using --verbose to print the full type name to the console

Filtered Findings (0)

Annotations

Check warning on line 1 in esdt-safe/src/to_sovereign/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] esdt-safe/src/to_sovereign/events.rs#L1

warning: unused imports: `BatchId`, `TxId`, `transaction_status::TransactionStatus`
 --> esdt-safe/src/to_sovereign/events.rs:1:19
  |
1 | use transaction::{transaction_status::TransactionStatus, BatchId, OperationData, TxId};
  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^                 ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default
Raw output
esdt-safe/src/to_sovereign/events.rs:1:19:w:warning: unused imports: `BatchId`, `TxId`, `transaction_status::TransactionStatus`
 --> esdt-safe/src/to_sovereign/events.rs:1:19
  |
1 | use transaction::{transaction_status::TransactionStatus, BatchId, OperationData, TxId};
  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^                 ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default


__END__

Check warning on line 1 in esdt-safe/src/to_sovereign/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] esdt-safe/src/to_sovereign/events.rs#L1

warning: unused imports: `BatchId`, `TxId`, `transaction_status::TransactionStatus`
 --> esdt-safe/src/to_sovereign/events.rs:1:19
  |
1 | use transaction::{transaction_status::TransactionStatus, BatchId, OperationData, TxId};
  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^                 ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default
Raw output
esdt-safe/src/to_sovereign/events.rs:1:19:w:warning: unused imports: `BatchId`, `TxId`, `transaction_status::TransactionStatus`
 --> esdt-safe/src/to_sovereign/events.rs:1:19
  |
1 | use transaction::{transaction_status::TransactionStatus, BatchId, OperationData, TxId};
  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^                 ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default


__END__

Check failure on line 325 in esdt-safe/tests/bridge_blackbox_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] esdt-safe/tests/bridge_blackbox_tests.rs#L325

error[E0599]: no method named `header_verifier_address` found for struct `EsdtSafeProxyMethods` in the current scope
   --> esdt-safe/tests/bridge_blackbox_tests.rs:329:14
    |
325 | /         self.world
326 | |             .query()
327 | |             .to(BRIDGE_ADDRESS)
328 | |             .typed(esdt_safe_proxy::EsdtSafeProxy)
329 | |             .header_verifier_address()
    | |_____________-^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: the full type name has been written to '/home/runner/work/mx-sovereign-sc/mx-sovereign-sc/target/debug/deps/bridge_blackbox_tests-6336499e6b2d8086.long-type-10248601507512331569.txt'
    = note: consider using `--verbose` to print the full type name to the console
help: there is a method `set_header_verifier_address` with a similar name, but with different arguments
   --> /home/runner/work/mx-sovereign-sc/mx-sovereign-sc/esdt-safe/src/esdt_safe_proxy.rs:101:5
    |
101 | /     pub fn set_header_verifier_address<
102 | |         Arg0: ProxyArg<ManagedAddress<Env::Api>>,
103 | |     >(
104 | |         self,
105 | |         header_verifier_address: Arg0,
106 | |     ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
    | |________________________________________________________^
Raw output
esdt-safe/tests/bridge_blackbox_tests.rs:325:9:e:error[E0599]: no method named `header_verifier_address` found for struct `EsdtSafeProxyMethods` in the current scope
   --> esdt-safe/tests/bridge_blackbox_tests.rs:329:14
    |
325 | /         self.world
326 | |             .query()
327 | |             .to(BRIDGE_ADDRESS)
328 | |             .typed(esdt_safe_proxy::EsdtSafeProxy)
329 | |             .header_verifier_address()
    | |_____________-^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: the full type name has been written to '/home/runner/work/mx-sovereign-sc/mx-sovereign-sc/target/debug/deps/bridge_blackbox_tests-6336499e6b2d8086.long-type-10248601507512331569.txt'
    = note: consider using `--verbose` to print the full type name to the console
help: there is a method `set_header_verifier_address` with a similar name, but with different arguments
   --> /home/runner/work/mx-sovereign-sc/mx-sovereign-sc/esdt-safe/src/esdt_safe_proxy.rs:101:5
    |
101 | /     pub fn set_header_verifier_address<
102 | |         Arg0: ProxyArg<ManagedAddress<Env::Api>>,
103 | |     >(
104 | |         self,
105 | |         header_verifier_address: Arg0,
106 | |     ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
    | |________________________________________________________^


__END__

Check failure on line 339 in esdt-safe/tests/bridge_blackbox_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] esdt-safe/tests/bridge_blackbox_tests.rs#L339

error[E0599]: no method named `pending_hashes` found for struct `HeaderverifierProxyMethods` in the current scope
   --> esdt-safe/tests/bridge_blackbox_tests.rs:343:14
    |
339 | /         self.world
340 | |             .query()
341 | |             .to(HEADER_VERIFIER_ADDRESS)
342 | |             .typed(header_verifier_proxy::HeaderverifierProxy)
343 | |             .pending_hashes(hash_of_hashes)
    | |             -^^^^^^^^^^^^^^ method not found in `HeaderverifierProxyMethods<ScenarioEnvQuery<'_>, (), TestSCAddress<'_>, ()>`
    | |_____________|
    | 
    |
    = note: the full type name has been written to '/home/runner/work/mx-sovereign-sc/mx-sovereign-sc/target/debug/deps/bridge_blackbox_tests-6336499e6b2d8086.long-type-16737336614906713957.txt'
    = note: consider using `--verbose` to print the full type name to the console
Raw output
esdt-safe/tests/bridge_blackbox_tests.rs:339:9:e:error[E0599]: no method named `pending_hashes` found for struct `HeaderverifierProxyMethods` in the current scope
   --> esdt-safe/tests/bridge_blackbox_tests.rs:343:14
    |
339 | /         self.world
340 | |             .query()
341 | |             .to(HEADER_VERIFIER_ADDRESS)
342 | |             .typed(header_verifier_proxy::HeaderverifierProxy)
343 | |             .pending_hashes(hash_of_hashes)
    | |             -^^^^^^^^^^^^^^ method not found in `HeaderverifierProxyMethods<ScenarioEnvQuery<'_>, (), TestSCAddress<'_>, ()>`
    | |_____________|
    | 
    |
    = note: the full type name has been written to '/home/runner/work/mx-sovereign-sc/mx-sovereign-sc/target/debug/deps/bridge_blackbox_tests-6336499e6b2d8086.long-type-16737336614906713957.txt'
    = note: consider using `--verbose` to print the full type name to the console


__END__