Closed leohhhn closed 5 months ago
This PR adds Ownable to the Memeland realm, and introduces a RemovePost() for handling moderation of posts.
Ownable
RemovePost()
It also introduces proper sorting by the timestamp the memes were created, as prevously it was purely based on the order of addition.
This PR also makes all of the tests for the Memeland package better, and adds tests for newly introduced functionality.
Considerations: If we choose to deploy the realm via genesis, ownership needs to be transferred to a trusted address in the init() of the realm.
init()
Description
This PR adds
Ownable
to the Memeland realm, and introduces aRemovePost()
for handling moderation of posts.It also introduces proper sorting by the timestamp the memes were created, as prevously it was purely based on the order of addition.
This PR also makes all of the tests for the Memeland package better, and adds tests for newly introduced functionality.
Considerations: If we choose to deploy the realm via genesis, ownership needs to be transferred to a trusted address in the
init()
of the realm.