Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
SkymanOne committed Nov 20, 2023
commit 099602e6d42f549df0641c1d533ccc9299969d88
4 changes: 2 additions & 2 deletions crates/ink/tests/return_type_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ mod tests {
let message = metadata.spec().messages().iter().next().unwrap();
assert_eq!("TraitDefinition::get_value", message.label());

let type_spec = message.return_type().opt_type().unwrap();
let type_spec = message.return_type().ret_type();
let ty = resolve_type(&metadata, type_spec.ty().id);
let (ok_ty, _) = extract_result(&metadata, ty);

Expand All @@ -119,7 +119,7 @@ mod tests {
let constructor = metadata.spec().constructors().iter().next().unwrap();

assert_eq!("try_new", constructor.label());
let type_spec = constructor.return_type().opt_type().unwrap();
let type_spec = constructor.return_type().ret_type();
assert_eq!(
"ink_primitives::ConstructorResult",
format!("{}", type_spec.display_name())
Expand Down