From 4332df935bd945718c3931487e1d7ab0d96bbe79 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Thu, 21 Oct 2021 20:08:09 +0300 Subject: [PATCH] Remove fee from `put` calls in `pallet-feeds` --- crates/pallet-feeds/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/pallet-feeds/src/lib.rs b/crates/pallet-feeds/src/lib.rs index 80c6787365a27..68b829fc669d0 100644 --- a/crates/pallet-feeds/src/lib.rs +++ b/crates/pallet-feeds/src/lib.rs @@ -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; @@ -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()) } } }