This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import "./ERC20.sol"; | |
| import "./interfaces/IERC20.sol"; | |
| contract TokenLockers is ERC20 { | |
| error InsufficentFunds(); | |
| error InsufficentInputValue(); | |
| error InvalidLocktime(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.24; | |
| // Inspired By: https://solidity-by-example.org/hacks/re-entrancy/ | |
| /** | |
| * @title EtherStore | |
| * @dev A simple contract for depositing and withdrawing ETH. | |
| * Vulnerable to re-entrancy attack. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.24; | |
| contract DeleteNumberAtIndexChallenge { | |
| struct Number { | |
| uint value; | |
| } | |
| Number[] public numbers; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ethers } from "ethers"; | |
| import * as fs from "fs"; | |
| import * as path from "path"; | |
| import * as dotenv from "dotenv"; | |
| // Terminal Command: npx ts-node scripts/sendZeroValueToSelf.ts | |
| // Used when a transaction fails to send | |
| // Load environment variables from .env file | |
| dotenv.config(); |
OlderNewer