Likes
Defines:
public struct Likes has store {
likes: Table<address, u8>
}
Add
The add
function has these effects:
Adds a like to the Likes table
Assert Has Not Liked
The assert_has_not_liked
function has these effects:
Throws error (370 - EAlreadyLiked) if a like already exists in the Likes table.
Create
The create
function has these effects:
Creates and returns a new Likes table
Get Length
The get_length
function has these effects:
Returns u64 length of the Likes table
Has Liked
The has_liked
function has these effects:
Returns boolean if the like exists in the Likes table
Last updated