skyge (skyge)

skyge

let me be me

16 Followers

Recent casts

For the zero address check, when executing `transfer` and `transferFrom` functions in token contracts, I will check whether the recipient address is the zero address. This check is necessary because the zero address is a special address that no one controls. Transferring tokens to the zero address is akin to burning tokens, but not in the traditional sense of burning tokens. To ensure a more reasonable token circulation, I will include a check for the zero address in these cases. However, in the `constructor` function, if the intention is to set a contract address, such as a treasury contract, I may not perform the zero address check. Instead, I would prefer to have a separate function that can update this contract address later. This approach allows for more flexibility because not only is `address(0)` considered invalid, but `address(1)` is also invalid. Therefore, having a dedicated function to modify the contract address provides a better solution.

  • 0 replies
  • 0 recasts
  • 0 reactions

what kind of music do you like to listen to when you are coding? Share out your song list!

  • 0 replies
  • 0 recasts
  • 0 reactions

Top casts

Try to deploy a Quest via Boost Terminal On Optimism, you can get 2000 $DEGEN as rewards. Have fun: https://rabbithole.gg/quests/ea8ef75c-6ffa-445c-8ff1-6a3527a66d66 @boostxyz #rabbbithole $DEGEN

  • 0 replies
  • 1 recast
  • 0 reactions

recast:farcaster://casts/0xdf5b6528ae6fd8d2a659db3629fb4ded24653e00d4e02487718514968fe9e8c8

  • 0 replies
  • 0 recasts
  • 0 reactions

Onchain profile

Ethereum addresses