Blockchain

15 Tips to Write Better Smart Contracts

15 Tips to Write Better Smart Contracts Blockchain PlatoBlockchain Data Intelligence. Vertical Search. Ai.

Functions should be concise and self-explanatory. Any functions which look too large, or perform nested loops or recursion should be revisited. More computation means more gas, meaning it costs more to perform those functions.

Source: https://medium.com/better-programming/15-tips-to-write-better-smart-contracts-abba3e94ddf2?source=rss——-8—————–cryptocurrency