-
Notifications
You must be signed in to change notification settings - Fork 740
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
[pallet-revive] fix xcm tests #5684
Conversation
@@ -24,6 +24,7 @@ extern crate alloc; | |||
pub fn compile_module(fixture_name: &str) -> anyhow::Result<(Vec<u8>, sp_core::H256)> { | |||
let out_dir: std::path::PathBuf = env!("OUT_DIR").into(); | |||
let fixture_path = out_dir.join(format!("{fixture_name}.polkavm")); | |||
log::debug!("Loading fixture from {fixture_path:?}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover or on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oups left over , but I guess it's handy when you want to grab the path of a fixture ¯_(ツ)_/¯
@@ -1790,17 +1790,20 @@ pub mod env { | |||
&mut self, | |||
memory: &mut M, | |||
dest_ptr: u32, | |||
dest_len: u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just so annoying that we don't have a FixedEncodedLen
trait. But we probably can get rid of SCALE for everything except XCM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was thinking the same, this can probably be added to parity-scale-codec later on to make it a bit safer
fix #5683