DEV Community


Discussion on: Shorten your link with my #Smartcontract.

thorstenhirsch profile image
Thorsten Hirsch

Using an incremental number (linkId) as the shortened URL lets any user "guess" all shortened URLs anyone has ever added, thus leaks all real URLs of your smart contract.

Also: please use tripple backticks (before the first and after the last code line) instead of single backticks (around each code line) for better visualisation of your code.