Skip to content

Commit

Permalink
fix abi & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed May 20, 2024
1 parent 7ec7ac4 commit 9f96ec1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion near-sdk-macros/src/core_impl/abi/abi_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ impl ImplItemMethodInfo {
let ty = parse_quote! { <#ty as near_sdk::__private::ResultTypeExt>::Okay };
self.abi_result_tokens_with_return_value(&ty)
}
HandlesResultImplicit(ty) => {
HandlesResultImplicit(status_result) => {
let ty = &status_result.result_type;
let ty = parse_quote! { <#ty as near_sdk::__private::ResultTypeExt>::Okay };
self.abi_result_tokens_with_return_value(&ty)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ impl ItemImplInfo {
}
};
let method_name = &method.attr_signature_info.ident;
let check_trait_method_name = format_ident!("assert_implements_my_trait{}", method_name);
let check_trait_method_name =
format_ident!("assert_implements_my_trait{}", method_name);

checks.extend(quote! {
fn #check_trait_method_name() {
Expand Down

0 comments on commit 9f96ec1

Please sign in to comment.