Browse Source

runtime: events: minor fixes

conectado 4 years ago
parent
commit
ef70b7419c

+ 2 - 0
runtime-modules/content-directory/src/lib.rs

@@ -1590,6 +1590,8 @@ decl_module! {
             });
 
             // Trigger event
+            // Note: The first `nonce + T::Nonce::one()` is the new value for the nonce while
+            // the second `nonce` is the input paramer for the extrinsic
             Self::deposit_event(
                 RawEvent::RemovedAtVectorIndex(
                     actor, entity_id, in_class_schema_property_id, index_in_property_vector,

+ 1 - 2
runtime-modules/forum/src/lib.rs

@@ -455,7 +455,7 @@ decl_event!(
 
         /// Post with given id had its text updated.
         /// The second argument reflects the number of total edits when the text update occurs.
-        PostTextUpdated(PostId, ForumUserId, CategoryId, ThreadId, PostId, Vec<u8>),
+        PostTextUpdated(PostId, ForumUserId, CategoryId, ThreadId, Vec<u8>),
 
         /// Thumb up post
         PostReacted(ForumUserId, PostId, PostReactionId, CategoryId, ThreadId),
@@ -1184,7 +1184,6 @@ decl_module! {
                     forum_user_id,
                     category_id,
                     thread_id,
-                    post_id,
                     new_text
                 ));
 

+ 0 - 1
runtime-modules/forum/src/mock.rs

@@ -871,7 +871,6 @@ pub fn edit_post_text_mock(
                 forum_user_id,
                 category_id,
                 thread_id,
-                post_id,
                 new_text
             ))
         );