Skip to content

Commit 7a96ce8

Browse files
committed
fix: update can_transfer as system attribute
1 parent 66c7cc8 commit 7a96ce8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

substrate/frame/nfts/src/impl_asset_ops/instance.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,9 @@ impl<T: Config<I>, I: 'static> UpdateMetadata<Instance, CanTransfer> for Pallet<
308308
}
309309
}
310310

311-
Self::update_metadata(
311+
<Self as UpdateMetadata<Instance, _>>::update_metadata(
312312
id,
313-
Bytes(RegularAttribute(
314-
&PalletAttributes::<T::CollectionId>::TransferDisabled.encode(),
315-
)),
313+
Bytes(SystemAttribute(&PalletAttributes::<T::CollectionId>::TransferDisabled.encode())),
316314
update.then_some(&[]),
317315
)
318316
}

0 commit comments

Comments
 (0)