NoPFP Blog
Home
About
🌐
English 繁體中文
NoPFP Blog
  • Don't use Blockhash as a source of randomness

    Mar 21, 2022 · 2 min read · randomness  ·
    Share on:

    Random is important in blockchain games. However, there is no true random number on solidity. The best practice is to use Chainlink VRF. This article will show you how to attack a CoinFlip contract. The following code is the CoinFlip contract, which was rewritten from Ethernaut. 1// SPDX-License-Identifier: MIT 2pragma …


    Read More

NoPFP Lab

NoPFP Lab: Not Only Profile Picture Lab
Read More

Featured Posts

  • Selfdestruct: force another contract to receive your ethers.
  • Beware of using tx.origin to verify user
  • Don't use Blockhash as a source of randomness
  • Token URI of ERC1155
  • How to add Fantom Testnet

Recent Posts

  • Selfdestruct: force another contract to receive your ethers.
  • Beware of using tx.origin to verify user
  • Don't use Blockhash as a source of randomness
  • Token URI of ERC1155
  • How to add Fantom Testnet

Categories

SECURITY 3 FANTOM 2

Tags

SOLIDITY 2 FALLBACK 1 INDEX 1 PHISHING 1 RANDOMNESS 1 RECEIVE 1 SELFDESTRUCT 1
NoPFP Blog

Copyright  NOPFP BLOG. All Rights Reserved