fix backword compatibility #481
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (7)
multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs|243 col 25| error[E0277]: the trait bound bool: multiversx_sc::multiversx_sc_codec::CodecFrom<multiversx_sc::types::BigUint<_>>
is not satisfied
--> multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs:243:25
|
239 | .call(self.esdt_safe.add_token_to_whitelist(
| ---------------------- required by a bound introduced by this call
...
243 | BigUint::from(ESDT_SAFE_ETH_TX_GAS_LIMIT),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait multiversx_sc::multiversx_sc_codec::CodecFrom<multiversx_sc::types::BigUint<_>>
is not implemented for bool
|
= help: the following other types implement trait multiversx_sc::multiversx_sc_codec::CodecFrom<T>
:
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i16 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i64 as multiversx_sc::multiversx_sc_codec::CodecFrom>
and 81 others
= note: required for multiversx_sc::types::BigUint<_>
to implement multiversx_sc::multiversx_sc_codec::CodecInto<bool>
note: required by a bound in token_module::ProxyTrait::add_token_to_whitelist
--> /home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/common/token-module/src/lib.rs:15:1
|
15 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in ProxyTrait::add_token_to_whitelist
...
66 | fn add_token_to_whitelist(
| ---------------------- required by a bound in this associated function
= note: this error originates in the attribute macro multiversx_sc::module
(in Nightly builds, run with -Z macro-backtrace for more info)
multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs|239 col 64| error[E0061]: this method takes 5 arguments but 4 arguments were supplied
--> multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs:239:42
|
239 | .call(self.esdt_safe.add_token_to_whitelist(
| ^^^^^^^^^^^^^^^^^^^^^^-
240 | | TokenIdentifier::from_esdt_bytes("BRIDGE-123456"),
241 | | "BRIDGE",
242 | | true,
243 | | BigUint::from(ESDT_SAFE_ETH_TX_GAS_LIMIT),
244 | | )),
| |- an argument is missing
|
note: method defined here
--> /home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/common/token-module/src/lib.rs:66:8
|
66 | fn add_token_to_whitelist(
| ^^^^^^^^^^^^^^^^^^^^^^
help: provide the argument
|
239 | .call(self.esdt_safe.add_token_to_whitelist(TokenIdentifier::from_esdt_bytes("BRIDGE-123456"), "BRIDGE", true, BigUint::from(ESDT_SAFE_ETH_TX_GAS_LIMIT), /* opt_default_price_per_gas_unit */)),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs|250 col 27| error[E0599]: no method named set_accumulated_burned_tokens
found for struct ContractInfo<Proxy<VMHooksApi<StaticApiBackend>>>
in the current scope
--> multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs:250:42
|
250 | .call(self.esdt_safe.set_accumulated_burned_tokens(
| ---------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in ContractInfo<Proxy<VMHooksApi<StaticApiBackend>>>
|
= note: the full type name has been written to '/home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/target/debug/deps/multi_transfer_blackbox_test-f1843319ef993b8b.long-type-2062351534262911850.txt'
multisig/src/setup.rs|217 col 17| error[E0277]: the trait bound bool: multiversx_sc::multiversx_sc_codec::CodecFrom<multiversx_sc::multiversx_sc_codec::multi_types::OptionalValue<multiversx_sc::types::BigUint<<Self as multiversx_sc::contract_base::ContractBase>::Api>>>
is not satisfied
--> multisig/src/setup.rs:217:17
|
213 | .add_token_to_whitelist(
| ---------------------- required by a bound introduced by this call
...
217 | opt_default_price_per_gas_unit,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait multiversx_sc::multiversx_sc_codec::CodecFrom<multiversx_sc::multiversx_sc_codec::multi_types::OptionalValue<multiversx_sc::types::BigUint<<Self as multiversx_sc::contract_base::ContractBase>::Api>>>
is not implemented for bool
|
= help: the following other types implement trait multiversx_sc::multiversx_sc_codec::CodecFrom<T>
:
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i16 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i64 as multiversx_sc::multiversx_sc_codec::CodecFrom>
and 77 others
= note: required for OptionalValue<BigUint<<Self as ContractBase>::Api>>
to implement multiversx_sc::multiversx_sc_codec::CodecInto<bool>
= note: the full type name has been written to '/home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/target/debug/deps/multisig-d7c24c446906f2e1.long-type-15790154485659369865.txt'
note: required by a bound in token_module::ProxyTrait::add_token_to_whitelist
--> /home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/common/token-module/src/lib.rs:15:1
|
15 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in ProxyTrait::add_token_to_whitelist
...
66 | fn add_token_to_whitelist(
| ---------------------- required by a bound in this associated function
= note: this error originates in the attribute macro multiversx_sc::module
(in Nightly builds, run with -Z macro-backtrace for more info)
multisig/src/setup.rs|213 col 36| error[E0061]: this method takes 5 arguments but 4 arguments were supplied
--> multisig/src/setup.rs:213:14
|
213 | .add_token_to_whitelist(
| ______________^^^^^^^^^^^^^^^^^^^^^^-
214 | | token_id,
215 | | ticker,
216 | | mint_burn_allowed,
217 | | opt_default_price_per_gas_unit,
218 | | )
| |- an argument is missing
|
note: method defined here
--> /home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/common/token-module/src/lib.rs:66:8
|
66 | fn add_token_to_whitelist(
| ^^^^^^^^^^^^^^^^^^^^^^
help: provide the argument
|
213 | .add_token_to_whitelist(token_id, ticker, mint_burn_allowed, opt_default_price_per_gas_unit, /* opt_default_price_per_gas_unit */)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
multisig/src/setup.rs|217 col 17| error[E0277]: the trait bound bool: multiversx_sc::multiversx_sc_codec::CodecFrom<multiversx_sc::multiversx_sc_codec::multi_types::OptionalValue<multiversx_sc::types::BigUint<<Self as multiversx_sc::contract_base::ContractBase>::Api>>>
is not satisfied
--> multisig/src/setup.rs:217:17
|
213 | .add_token_to_whitelist(
| ---------------------- required by a bound introduced by this call
...
217 | opt_default_price_per_gas_unit,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait multiversx_sc::multiversx_sc_codec::CodecFrom<multiversx_sc::multiversx_sc_codec::multi_types::OptionalValue<multiversx_sc::types::BigUint<<Self as multiversx_sc::contract_base::ContractBase>::Api>>>
is not implemented for bool
|
= help: the following other types implement trait multiversx_sc::multiversx_sc_codec::CodecFrom<T>
:
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<isize as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i16 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i32 as multiversx_sc::multiversx_sc_codec::CodecFrom>
<i64 as multiversx_sc::multiversx_sc_codec::CodecFrom>
and 77 others
= note: required for OptionalValue<BigUint<<Self as ContractBase>::Api>>
to implement multiversx_sc::multiversx_sc_codec::CodecInto<bool>
= note: the full type name has been written to '/home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/target/debug/deps/multisig-d185a67a3422257f.long-type-232574498556137814.txt'
note: required by a bound in token_module::ProxyTrait::add_token_to_whitelist
--> /home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/common/token-module/src/lib.rs:15:1
|
15 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in ProxyTrait::add_token_to_whitelist
...
66 | fn add_token_to_whitelist(
| ---------------------- required by a bound in this associated function
= note: this error originates in the attribute macro multiversx_sc::module
(in Nightly builds, run with -Z macro-backtrace for more info)
multisig/src/setup.rs|213 col 36| error[E0061]: this method takes 5 arguments but 4 arguments were supplied
--> multisig/src/setup.rs:213:14
|
213 | .add_token_to_whitelist(
| ______________^^^^^^^^^^^^^^^^^^^^^^-
214 | | token_id,
215 | | ticker,
216 | | mint_burn_allowed,
217 | | opt_default_price_per_gas_unit,
218 | | )
| |_____- an argument is missing
|
note: method defined here
--> /home/runner/work/mx-bridge-eth-sc-rs/mx-bridge-eth-sc-rs/common/token-module/src/lib.rs:66:8
|
66 | fn add_token_to_whitelist(
| ^^^^^^^^^^^^^^^^^^^^^^
help: provide the argument
|
213 | .add_token_to_whitelist(token_id, ticker, mint_burn_allowed, opt_default_price_per_gas_unit, /* opt_default_price_per_gas_unit */)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~