Skip to content

Commit

Permalink
fix vmerror in the data_struct validation (#1636)
Browse files Browse the repository at this point in the history
steelgeek091 authored Apr 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0e25b4d commit 02cd98c
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions moveos/moveos-verifier/src/metadata.rs
Original file line number Diff line number Diff line change
@@ -88,6 +88,8 @@ impl RuntimeModuleMetadataV1 {
&& self.struct_attributes.is_empty()
&& self.private_generics_indices.is_empty()
&& self.gas_free_function_map.is_empty()
&& self.data_struct_map.is_empty()
&& self.data_struct_func_map.is_empty()
}
}

8 changes: 8 additions & 0 deletions moveos/moveos-verifier/src/verifier.rs
Original file line number Diff line number Diff line change
@@ -783,6 +783,14 @@ where
);
}
}
SignatureToken::Address => {}
SignatureToken::Bool => {}
SignatureToken::U8 => {}
SignatureToken::U16 => {}
SignatureToken::U32 => {}
SignatureToken::U64 => {}
SignatureToken::U128 => {}
SignatureToken::U256 => {}
_ => {
let error_msg = format!("The type parameter when calling function {} is now allowed",
full_path_func_name);

0 comments on commit 02cd98c

Please sign in to comment.