Tidy the DEX pallet

This commit is contained in:
Luke Parker
2025-11-30 21:27:04 -05:00
parent c45c973ca1
commit 30ea9d9a06
22 changed files with 664 additions and 3555 deletions

View File

@@ -43,8 +43,8 @@ impl SeraiAddress {
/// logarithm for a point whose representation has a known Blake2b-256 preimage.
// The alternative would be to massage this until its not a valid point, which isn't worth the
// computational expense as this should be a hard problem for outputs which happen to be points.
pub fn system(label: &[u8]) -> Self {
Self(sp_core::blake2_256(label))
pub fn system(label: impl AsRef<[u8]>) -> Self {
Self(sp_core::blake2_256(label.as_ref()))
}
}