DEV Community

Cover image for Shorten your link with my #Smartcontract.

Shorten your link with my #Smartcontract.

MahaLakshmi Perumal on November 28, 2020

Shorten the link #smartcontract has been deployed on #XinFin Network and the transaction fees to deploy this smartcontract was 0.00007 XDC. Let me ...
Collapse
 
thorstenhirsch profile image
Thorsten Hirsch • Edited

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.