Skip to content

Commit

Permalink
Entry function must not return any value (MystenLabs#4319)
Browse files Browse the repository at this point in the history
I think there's a mistake here. This is because I know that entry functions cannot return any value. So, the create_monster_ function here is not an entry function.
  • Loading branch information
vietanhvo authored Aug 29, 2022
1 parent 171cc4e commit bd8f763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/explore/prototypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ GET /object_info?objectId={{monster_id}}
}
// Creates a basic Monster object
public entry fun create_monster_(
public fun create_monster_(
monster_name: vector<u8>,
monster_img_index: u64,
breed: u8,
Expand Down

0 comments on commit bd8f763

Please sign in to comment.