--

Thanks for reading

You can check in single line below:

require(user[_address].addr != msg.sender);

In register function it is already fixed.

Already register user cannot register again, the transaction failed in that case.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Muhammad Zaryab Rafique
Muhammad Zaryab Rafique

Written by Muhammad Zaryab Rafique

Blockchain, Rust, Go lang, Web 3.0, Ethereum, Solana, Substrate, Cosmos

No responses yet

Write a response