Skip to content

Commit

Permalink
fix: fix wasmer build error (#8295)
Browse files Browse the repository at this point in the history
  • Loading branch information
wacban authored Jan 9, 2023
1 parent 3d93a90 commit 7ca69b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/near-vm-runner/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ fn prepaid_loading_gas(bytes: usize) -> u64 {
/// memory must be configured for indices `0..WASM_PAGE_SIZE` to be valid.
///
/// Panics if any of the tests fails.
#[allow(dead_code)]
pub(crate) fn test_memory_like(factory: impl FnOnce() -> Box<dyn MemoryLike>) {
const PAGE: u64 = wasmer_types::WASM_PAGE_SIZE as u64;
// Hardcoded to work around build errors when wasmer_types is not available.
// Set to value of wasmer_types::WASM_PAGE_SIZE
const PAGE: u64 = 0x10000;

struct TestContext {
mem: Box<dyn MemoryLike>,
Expand Down

0 comments on commit 7ca69b8

Please sign in to comment.