-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect compiler error message about a trait import #6303
Comments
Can you post the whole error message please? The error is possibly generated by the compiler. |
|
I know the package is named
|
Nevermind I can reproduce: [package]
name = "ressai"
version = "0.1.0"
edition = "2021"
[dependencies]
frame = { package = "polkadot-sdk-frame", git = "https://github.com/paritytech/polkadot-sdk.git", branch = "master", features = ["experimental", "runtime", "std"] } main.rs use frame::traits::BlakeTwo256;
fn main() {
let new_dna: [u8; 32] = BlakeTwo256::hash_of(&3u32).into();
} |
This is a rustc error. |
I'm trying to hash something with
BlakeTwo256::hash_of(data).into()
, it told me I needed to adduse frame::primitives::BlakeTwo256;
and then said hash_of wasn't in scope and I should adduse polkadot_sdk_frame::traits::Hash
.However, that doesn't exist, and I need
use frame::traits::Hash
.I believe this is related to issue 3813 and possibly concerns lines 53-64 here, but I could not find where the compiler error is being generated from.
The text was updated successfully, but these errors were encountered: