Release 5.0.1 #2940
Annotations
2 errors
mismatched types:
crates/cargo-contract/src/cmd/instantiate.rs#L172
error[E0308]: mismatched types
--> crates/cargo-contract/src/cmd/instantiate.rs:172:23
|
172 | .salt(self.salt.clone())
| ---- ^^^^^^^^^^^^^^^^^ expected `sp_core::Bytes`, found a different `sp_core::Bytes`
| |
| arguments to this method are incorrect
|
= note: `sp_core::Bytes` and `sp_core::Bytes` have similar names, but are actually distinct types
note: `sp_core::Bytes` is defined in crate `sp_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-32.0.0/src/lib.rs:112:1
|
112 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
| ^^^^^^^^^^^^^^^^
note: `sp_core::Bytes` is defined in crate `sp_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-31.0.0/src/lib.rs:111:1
|
111 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
| ^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `sp_core` are being used?
note: method defined here
--> /home/runner/work/cargo-contract/cargo-contract/crates/extrinsics/src/instantiate.rs:142:12
|
142 | pub fn salt(self, salt: Option<Bytes>) -> Self {
| ^^^^
|
mismatched types:
crates/cargo-contract/src/cmd/instantiate.rs#L172
error[E0308]: mismatched types
--> crates/cargo-contract/src/cmd/instantiate.rs:172:23
|
172 | .salt(self.salt.clone())
| ---- ^^^^^^^^^^^^^^^^^ expected `sp_core::Bytes`, found a different `sp_core::Bytes`
| |
| arguments to this method are incorrect
|
= note: `sp_core::Bytes` and `sp_core::Bytes` have similar names, but are actually distinct types
note: `sp_core::Bytes` is defined in crate `sp_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-32.0.0/src/lib.rs:112:1
|
112 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
| ^^^^^^^^^^^^^^^^
note: `sp_core::Bytes` is defined in crate `sp_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-31.0.0/src/lib.rs:111:1
|
111 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
| ^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `sp_core` are being used?
note: method defined here
--> /home/runner/work/cargo-contract/cargo-contract/crates/extrinsics/src/instantiate.rs:142:12
|
142 | pub fn salt(self, salt: Option<Bytes>) -> Self {
| ^^^^
|