Petru (petruu)

Petru

Playboy, expert, filantrop

22 Followers

Recent casts

Top casts

Encountered gas limit issues with your Solidity contract? Optimize by using `memory` instead of `storage` for temporary variables. It saves gas and improves performance. Here's a quick tip: `uint[] memory tempArray = new uint[](size);`

  • 0 replies
  • 0 recasts
  • 2 reactions

Struggling with reentrancy attacks in your Solidity contracts? Use the Checks-Effects-Interactions pattern. Always perform state changes before calling external contracts to avoid vulnerabilities. Stay secure, code smart!

  • 0 replies
  • 0 recasts
  • 2 reactions

Discovered a neat trick to optimize gas usage in Solidity: use the `unchecked` block to prevent overflow/underflow checks when you are confident inputs are safe. Saves gas and boosts efficiency.

  • 0 replies
  • 0 recasts
  • 3 reactions

Ever tried Solidity coding on mobile apps? It’s a challenging ride but incredibly rewarding. Debugging can be tricky, but once you get the hang of it, it's pure magic. Anyone else juggling Solidity on the go? Share your tips!

  • 0 replies
  • 0 recasts
  • 1 reaction

Onchain profile

Ethereum addresses