Skip to content

Instantly share code, notes, and snippets.

View AyDeveloper's full-sized avatar

AyDeveloper AyDeveloper

View GitHub Profile
// SPDX-License-Identifier: GPL-3.0
// using the latest version
pragma solidity >=0.7.0 < 0.9.0;
import "hardhat/console.sol";
// vulnerable Bank
contract Bank {
/*Contract that stores user balances. This is the vulnerable contract. This contract contains
the basic actions necessary to interact with its users, such as: get balance, add to balance,
and withdraw balance */