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
In mars-integration-test, we load the wasm binary file the following way:
mars-integration-test
let path = format!("../{artifacts_dir}/{snaked_name}.wasm");
However, on ARM computers, the filename generated is instead contract_name-aarch64.wasm, which causes the test to fail.
contract_name-aarch64.wasm
I suggest we do something like this (untested, not sure if will work):
let path = { #[cfg(target_arch = "aarch64")] format!("../{artifacts_dir}/{snaked_name}-aarch64.wasm") #[cfg(not(target_arch = "aarch64"))] format!("../{artifacts_dir}/{snaked_name}.wasm") };
The text was updated successfully, but these errors were encountered:
The same case in the tests for mars-swapper-osmosis
mars-swapper-osmosis
Sorry, something went wrong.
This can be done using the cfg-if crate:
cfg-if
use cfg_if::cfg_if; use std::{env, path::PathBuf}; let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?); let wasm_file_path = manifest_dir.join({ cfg_if! { if #[cfg(target_arch = "aarch64")] { "../../artifacts/cw_bank-aarch64.wasm" } else { "../../artifacts/cw_bank.wasm" } } });
No branches or pull requests
In
mars-integration-test
, we load the wasm binary file the following way:However, on ARM computers, the filename generated is instead
contract_name-aarch64.wasm
, which causes the test to fail.I suggest we do something like this (untested, not sure if will work):
The text was updated successfully, but these errors were encountered: