Skip to content

Instantly share code, notes, and snippets.

View gr8h's full-sized avatar

Hesham Shabanah gr8h

View GitHub Profile
@gr8h
gr8h / contracts...CoinFlip.sol
Created March 7, 2023 19:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Attack {
CoinFlip private immutable target;
uint256 FACTOR =
57896044618658097711785492504343953926634992332820282019728792003956564819968;
constructor(address _targerAddr) {
target = CoinFlip(_targerAddr);

Keybase proof

I hereby claim:

  • I am gr8h on github.
  • I am gr8h (https://keybase.io/gr8h) on keybase.
  • I have a public key ASCosIPX-BQFF-mEC3_66YrUf0Zc_lkbJFCMMRhuPP2Q3Qo

To claim this, I am signing this object: