Skip to content
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

Merged
merged 4 commits into from
Sep 12, 2024
Merged

[pallet-revive] fix xcm tests #5684

merged 4 commits into from
Sep 12, 2024

Conversation

pgherveou
Copy link
Contributor

@pgherveou pgherveou commented Sep 12, 2024

fix #5683

@pgherveou pgherveou added R0-silent Changes should not be mentioned in any release notes T7-smart_contracts This PR/Issue is related to smart contracts. labels Sep 12, 2024
@@ -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:?}");
Copy link
Member

Choose a reason for hiding this comment

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

Leftover or on purpose?

Copy link
Contributor Author

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,
Copy link
Member

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.

Copy link
Contributor Author

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

@pgherveou pgherveou added this pull request to the merge queue Sep 12, 2024
Merged via the queue into master with commit 8d0aab8 Sep 12, 2024
204 of 206 checks passed
@pgherveou pgherveou deleted the pg/revive-fix-xcm-tests branch September 12, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T7-smart_contracts This PR/Issue is related to smart contracts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix mock-network gate
4 participants