-
Notifications
You must be signed in to change notification settings - Fork 248
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
Codegen output not implements codec::Decode #315
Comments
workaround: #[subxt::subxt(runtime_metadata_path = "nodes/pontem.scale")]
pub mod pontem {}
const _: () = {
use pontem::runtime_types::polkadot_parachain::primitives::Id;
impl PartialEq for Id {
fn eq(&self, other: &Self) -> bool {
self.0 == other.0
}
}
impl Eq for Id {
}
impl PartialOrd for Id {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.0.partial_cmp(&other.0)
}
}
impl Ord for Id {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.0.cmp(&other.0)
}
}
}; |
Alternatively you might be able to use
That might work. |
I believe that this will be closed by #456; you'll no longer need the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some
codegen
output not implementscodec::Decode
.To reproduce there's two runtimes metadata:
pontem.scale.zip
Error: the trait
Decode
is not implemented forBTreeMap<pontem::runtime_types::polkadot_parachain::primitives::Id, MessageQueueChain>
build log errors
The text was updated successfully, but these errors were encountered: