Skip to content

Determine wasm binary filename based on CPU architecture #334

@larry0x

Description

@larry0x

In mars-integration-test, we load the wasm binary file the following way:

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.

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")
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions