DEV Community

Discussion on: The Complete Guide to Full Stack Web3 Development

Collapse
 
maxyou profile image
Hongyu You

The contract function updatePost( ) has a line: idToPost[postId] = post;
What does it do? Does it really needed?
If we should remove hashToPost[old_hash]?