Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 48987b6

Browse files
arkparchemeapopiakshawntabrizi
authored
Apply suggestions from code review
Co-authored-by: cheme <[email protected]> Co-authored-by: Alexander Popiak <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]>
1 parent 9b61628 commit 48987b6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

frame/transaction-storage/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Transaction Storage Pallet
22

3+
Indexes transactions and manages storage proofs.
4+
# Transaction Storage Pallet
5+
36
Indexes transactions and manages storage proofs.
47

58
License: Apache-2.0

frame/transaction-storage/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type BalanceOf<T> = <<T as Config>::Currency as Currency<<T as frame_system::Con
4949
pub use pallet::*;
5050
pub use weights::WeightInfo;
5151

52-
/// Maximum bytes that can be storead in one transaction.
52+
/// Maximum bytes that can be stored in one transaction.
5353
// Increasing it further also requires raising the allocator limit.
5454
pub const MAX_DATA_SIZE: u32 = 8 * 1024 * 1024;
5555

@@ -145,7 +145,7 @@ pub mod pallet {
145145
pub(super) fn store(
146146
origin: OriginFor<T>,
147147
data: Vec<u8>,
148-
) -> DispatchResultWithPostInfo {
148+
) -> DispatchResult {
149149
ensure!(data.len() > 0, Error::<T>::EmptyTransaction);
150150
Self::apply_fee(origin, data.len() as u32)?;
151151

@@ -165,7 +165,7 @@ pub mod pallet {
165165
content_hash: content_hash.into(),
166166
});
167167
Self::deposit_event(Event::Stored(counter));
168-
Ok(().into())
168+
Ok(())
169169
}
170170

171171
/// Renew previously stored data. Parameters are the block number that contains

0 commit comments

Comments
 (0)