Skip to content

Commit 1fb57b3

Browse files
committed
Move to last line
1 parent 97b90ef commit 1fb57b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/vm/src/compatibility.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ const MAX_FUNCTION_RESULTS: usize = 1;
8282
/// Checks if the data is valid wasm and compatibility with the CosmWasm API (imports and exports)
8383
pub fn check_wasm(wasm_code: &[u8], available_capabilities: &HashSet<String>) -> VmResult<()> {
8484
let mut module = ParsedWasm::parse(wasm_code)?;
85-
module.validate_funcs()?;
8685

8786
check_wasm_tables(&module)?;
8887
check_wasm_memories(&module)?;
@@ -92,7 +91,7 @@ pub fn check_wasm(wasm_code: &[u8], available_capabilities: &HashSet<String>) ->
9291
check_wasm_capabilities(&module, available_capabilities)?;
9392
check_wasm_functions(&module)?;
9493

95-
Ok(())
94+
module.validate_funcs()
9695
}
9796

9897
fn check_wasm_tables(module: &ParsedWasm) -> VmResult<()> {

0 commit comments

Comments
 (0)