Hi all, is it possible to have a smart contract that prevents the duplication of entries. I have used struct and mapping to get input details like name phone number , date of birth and email etc from the UI. I should be able to ensure that there should not be any duplicate entries. I am using mapping concept here and a unique id is mapped to these information. Is it possible to have a smart contract like this
Nov 28, 2020, 1:23 PM
Could anyone please advise. If yes could anyone please tell.me how can it be done
Nov 28, 2020, 1:23 PM
You can hash the info and then check use mapping from bytes to boolean to check if this entry already exists
Nov 28, 2020, 1:59 PM
Okay let me give a try on this
Nov 28, 2020, 2:02 PM