Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request paritytech#75 from subspace/free-put-feeds
Browse files Browse the repository at this point in the history
Remove fee from `put` calls in `pallet-feeds`
  • Loading branch information
nazar-pc authored Oct 21, 2021
2 parents bb59ca6 + 4332df9 commit 7877620
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/pallet-feeds/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ mod pallet {
feed_id: FeedId,
data: PutDataObject,
metadata: ObjectMetadata,
) -> DispatchResult {
) -> DispatchResultWithPostInfo {
let who = ensure_signed(origin)?;

let object_size = data.len() as u64;
Expand All @@ -137,7 +137,8 @@ mod pallet {

Self::deposit_event(Event::DataSubmitted(metadata, who, object_size));

Ok(())
// TODO: For now we don't have fees, but we will have them in the future
Ok(Pays::No.into())
}
}
}
Expand Down

0 comments on commit 7877620

Please sign in to comment.