File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
sway-core/src/transform/to_parsed_lang Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -903,14 +903,25 @@ fn handle_impl_contract(
903
903
// Convert the methods to ABI interface
904
904
let mut interface_surface = Vec :: new ( ) ;
905
905
for item in & item_impl. contents . inner {
906
+ let ( _, attributes) = attr_decls_to_attributes (
907
+ & item. attributes ,
908
+ |attr| {
909
+ attr. can_annotate_impl_item (
910
+ & item. value ,
911
+ sway_ast:: ImplItemParent :: Contract ,
912
+ )
913
+ } ,
914
+ item. value . friendly_name ( sway_ast:: ImplItemParent :: Contract ) ,
915
+ ) ;
916
+
906
917
match & item. value {
907
918
sway_ast:: ItemImplItem :: Fn ( fn_item) => {
908
919
let fn_decl = fn_signature_to_trait_fn (
909
920
context,
910
921
handler,
911
922
engines,
912
923
fn_item. fn_signature . clone ( ) ,
913
- Attributes :: default ( ) ,
924
+ attributes ,
914
925
) ?;
915
926
916
927
// Validate parameters for mutability
You can’t perform that action at this time.
0 commit comments