Skip to content

Commit d53eb3e

Browse files
committed
🔧 chore(lib.rs): update Scale trait implementation to use BlockNumberFor<Self> instead of Self::BlockNumber for better compatibility and flexibility
1 parent 6ac39b0 commit d53eb3e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎pallets/fund-admin-records/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub mod pallet {
2929

3030
type Moment: Parameter
3131
+ Default
32-
+ Scale<Self::BlockNumber, Output = Self::Moment>
32+
+ Scale<BlockNumberFor<Self>, Output = Self::Moment>
3333
+ Copy
3434
+ MaxEncodedLen
3535
+ scale_info::StaticTypeInfo

‎pallets/fund-admin/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub mod pallet {
3434

3535
type Moment: Parameter
3636
+ Default
37-
+ Scale<Self::BlockNumber, Output = Self::Moment>
37+
+ Scale<BlockNumberFor<Self>, Output = Self::Moment>
3838
+ Copy
3939
+ MaxEncodedLen
4040
+ scale_info::StaticTypeInfo

‎pallets/gated-marketplace/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub mod pallet {
3737

3838
type Moment: Parameter
3939
+ Default
40-
+ Scale<Self::BlockNumber, Output = Self::Moment>
40+
+ Scale<BlockNumberFor<Self>, Output = Self::Moment>
4141
+ Copy
4242
+ MaxEncodedLen
4343
+ scale_info::StaticTypeInfo

0 commit comments

Comments
 (0)