We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to send XCM with Transact. For that I need scale encoded call like that:
// 2. SCALE encode call data to bytes (pallet u8, call u8, call params). let call_data = { let mut bytes = Vec::new(); let pallet = self.client.metadata().pallet(C::PALLET)?; bytes.push(pallet.index()); bytes.push(pallet.call_index::<C>()?); self.call.encode_to(&mut bytes); Encoded(bytes) };
But there is no API to get it, nor call and client are public to allow to write my own trait
The text was updated successfully, but these errors were encountered:
this for specific call
let mut bytes = Vec::new(); let pallet = relay.client.metadata().pallet(HrmpAcceptOpenChannel::PALLET).unwrap(); bytes.push(pallet.index()); bytes.push(pallet.call_index::<HrmpAcceptOpenChannel>().unwrap()); let call = HrmpAcceptOpenChannel { sender : primitives::Id(command.para_id)}; call.encode_to(&mut bytes);
so it could be useful part of API for XCM (may be for other dispatchable usage as in Democracy)
Sorry, something went wrong.
right, should be easy to expose encode on the struct SubmittableExtrinsic
encode
struct SubmittableExtrinsic
to enable that
Successfully merging a pull request may close this issue.
I want to send XCM with Transact. For that I need scale encoded call like that:
But there is no API to get it, nor call and client are public to allow to write my own trait
The text was updated successfully, but these errors were encountered: