Skip to content

Conversation

@OBorce
Copy link

@OBorce OBorce commented Dec 5, 2025

  • also use the specific version of parity scale codec with the fix for NanoX

- also use the specific version of parrity scale codec with the fix for
  NanoX
src/misc.rs Outdated
Comment on lines 216 to 218
pub fn encode_as_compact(num: u32) -> PscVec<u8> {
parity_scale_codec::Compact::<u32>::encode(&num.into())
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function has a generic name, but it's only defined for u32. Either make it generic over the type or at least give it a specific name, e.g. encode_u32_as_compact (though this will also look quite ugly, so plz try making it generic first).

But are all these functions really needed?

Comment on lines +17 to +19
parity-scale-codec = { git = "https://github.com/paritytech/parity-scale-codec.git", rev = "5021525697edc0661591ebc71392c48d950a10b0", default-features = false, features = [
"derive",
] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImplOfAnImpl and others added 2 commits December 10, 2025 12:02
CI fix: hardcode a separate Rust version to use with do_checks.sh
11
}

pub const fn address_prefix(&self, destination: &Destination) -> &'static str {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, it's better to accept DestinationTag here, it'll be more re-usable this way. Then, you can can call it for a destination by passing (&destination).into() or destination.discriminant()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants