Skip to content

crypto kitties scs migration to new proxies and unified syntax #1340

crypto kitties scs migration to new proxies and unified syntax

crypto kitties scs migration to new proxies and unified syntax #1340

GitHub Actions / clippy succeeded Apr 3, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (2)

contracts/examples/crypto-kitties/kitty-ownership/src/lib.rs|343 col 39| error[E0277]: the trait bound kitty::Kitty: multiversx_sc::imports::CodecFrom<structs::Kitty> is not satisfied
--> contracts/examples/crypto-kitties/kitty-ownership/src/lib.rs:343:39
|
343 | .generate_kitty_genes(matron, sire)
| -------------------- ^^^^^^ the trait multiversx_sc::imports::CodecFrom<structs::Kitty> is not implemented for kitty::Kitty
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait multiversx_sc::imports::CodecFrom<T>:
<isize as multiversx_sc::imports::CodecFrom>
<isize as multiversx_sc::imports::CodecFrom>
<isize as multiversx_sc::imports::CodecFrom>
<i16 as multiversx_sc::imports::CodecFrom>
<i32 as multiversx_sc::imports::CodecFrom>
<i32 as multiversx_sc::imports::CodecFrom>
<i32 as multiversx_sc::imports::CodecFrom>
<i64 as multiversx_sc::imports::CodecFrom>
and 77 others
= note: required for structs::Kitty to implement multiversx_sc::imports::CodecInto<kitty::Kitty>
note: required by a bound in kitty_genetic_alg_proxy::KittyGeneticAlgProxyMethods::<Env, From, To, Gas>::generate_kitty_genes
--> contracts/examples/crypto-kitties/kitty-ownership/src/kitty_genetic_alg_proxy.rs:65:15
|
64 | pub fn generate_kitty_genes<
| -------------------- required by a bound in this associated function
65 | Arg0: CodecIntokitty::Kitty,
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in KittyGeneticAlgProxyMethods::<Env, From, To, Gas>::generate_kitty_genes
contracts/examples/crypto-kitties/kitty-ownership/src/lib.rs|343 col 47| error[E0277]: the trait bound kitty::Kitty: multiversx_sc::imports::CodecFrom<structs::Kitty> is not satisfied
--> contracts/examples/crypto-kitties/kitty-ownership/src/lib.rs:343:47
|
343 | .generate_kitty_genes(matron, sire)
| -------------------- ^^^^ the trait multiversx_sc::imports::CodecFrom<structs::Kitty> is not implemented for kitty::Kitty
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait multiversx_sc::imports::CodecFrom<T>:
<isize as multiversx_sc::imports::CodecFrom>
<isize as multiversx_sc::imports::CodecFrom>
<isize as multiversx_sc::imports::CodecFrom>
<i16 as multiversx_sc::imports::CodecFrom>
<i32 as multiversx_sc::imports::CodecFrom>
<i32 as multiversx_sc::imports::CodecFrom>
<i32 as multiversx_sc::imports::CodecFrom>
<i64 as multiversx_sc::imports::CodecFrom>
and 77 others
= note: required for structs::Kitty to implement multiversx_sc::imports::CodecInto<kitty::Kitty>
note: required by a bound in kitty_genetic_alg_proxy::KittyGeneticAlgProxyMethods::<Env, From, To, Gas>::generate_kitty_genes
--> contracts/examples/crypto-kitties/kitty-ownership/src/kitty_genetic_alg_proxy.rs:66:15
|
64 | pub fn generate_kitty_genes<
| -------------------- required by a bound in this associated function
65 | Arg0: CodecIntokitty::Kitty,
66 | Arg1: CodecIntokitty::Kitty,
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in KittyGeneticAlgProxyMethods::<Env, From, To, Gas>::generate_kitty_genes