From 7f6f12f8fb61fd714a5b5fea262e4a4ae29036ee Mon Sep 17 00:00:00 2001 From: ling jia Date: Fri, 25 Aug 2023 16:48:10 +0800 Subject: [PATCH] replace T::BlockNumber with BlockNumberFor It will cause error because associated type `BlockNumber` not found for `T` --- .../build-application-logic/use-macros-in-a-custom-pallet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/md/en/docs/tutorials/build-application-logic/use-macros-in-a-custom-pallet.md b/content/md/en/docs/tutorials/build-application-logic/use-macros-in-a-custom-pallet.md index 7ace105f4..9637fdf56 100644 --- a/content/md/en/docs/tutorials/build-application-logic/use-macros-in-a-custom-pallet.md +++ b/content/md/en/docs/tutorials/build-application-logic/use-macros-in-a-custom-pallet.md @@ -238,7 +238,7 @@ To implement storage for the proof-of-existence pallet: ```rust #[pallet::storage] - pub(super) type Claims = StorageMap<_, Blake2_128Concat, T::Hash, (T::AccountId, T::BlockNumber)>; + pub(super) type Claims = StorageMap<_, Blake2_128Concat, T::Hash, (T::AccountId, BlockNumberFor)>; ``` 1. Save your changes.