Unverified Commit fc81a822 authored by Robin Freyler's avatar Robin Freyler
Browse files

[lang] Make use of the new pdsl_utils sub-crate

This removes the critical dependency to pdsl_core.
parent d6a15ce5
......@@ -18,7 +18,7 @@ categories = ["no-std", "embedded"]
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
[dependencies]
pdsl_core = { path = "../core/" }
pdsl_utils = { path = "../utils/" }
pdsl_model = { path = "../model/" }
parity-codec = { version = "3.1", default-features = false, features = ["derive"] }
......@@ -38,11 +38,10 @@ proc-macro = true
[features]
default = []
std = [
"pdsl_core/std",
"parity-codec/std",
"pdsl_utils/std",
"parity-codec/std",
]
test-env = [
"pdsl_core/test-env",
"pdsl_model/test-env",
"pdsl_model/test-env",
]
generate-api-description = []
......@@ -387,7 +387,7 @@ impl Message {
}
fn raw_message_selector(name: &str) -> u32 {
let keccak = pdsl_core::hash::keccak256(name.as_bytes());
let keccak = pdsl_utils::hash::keccak256(name.as_bytes());
u32::from_le_bytes([keccak[0], keccak[1], keccak[2], keccak[3]])
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment