This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
frame/transaction-storage Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Transaction Storage Pallet
2
2
3
+ Indexes transactions and manages storage proofs.
4
+ # Transaction Storage Pallet
5
+
3
6
Indexes transactions and manages storage proofs.
4
7
5
8
License: Apache-2.0
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ type BalanceOf<T> = <<T as Config>::Currency as Currency<<T as frame_system::Con
49
49
pub use pallet:: * ;
50
50
pub use weights:: WeightInfo ;
51
51
52
- /// Maximum bytes that can be storead in one transaction.
52
+ /// Maximum bytes that can be stored in one transaction.
53
53
// Increasing it further also requires raising the allocator limit.
54
54
pub const MAX_DATA_SIZE : u32 = 8 * 1024 * 1024 ;
55
55
@@ -145,7 +145,7 @@ pub mod pallet {
145
145
pub ( super ) fn store (
146
146
origin : OriginFor < T > ,
147
147
data : Vec < u8 > ,
148
- ) -> DispatchResultWithPostInfo {
148
+ ) -> DispatchResult {
149
149
ensure ! ( data. len( ) > 0 , Error :: <T >:: EmptyTransaction ) ;
150
150
Self :: apply_fee ( origin, data. len ( ) as u32 ) ?;
151
151
@@ -165,7 +165,7 @@ pub mod pallet {
165
165
content_hash : content_hash. into ( ) ,
166
166
} ) ;
167
167
Self :: deposit_event ( Event :: Stored ( counter) ) ;
168
- Ok ( ( ) . into ( ) )
168
+ Ok ( ( ) )
169
169
}
170
170
171
171
/// Renew previously stored data. Parameters are the block number that contains
You can’t perform that action at this time.
0 commit comments