This file contains 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
// @author original POC by @z0age | |
library pureConsole { | |
/********************* | |
* string + uint256 | |
********************/ | |
function log(string memory errorMessage, uint256 value) internal pure { |
This file contains 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.19; | |
import "forge-std/Test.sol"; | |
contract Reverter { | |
event Test(); | |
function emitAndRevert() external { | |
emit Test(); |
This file contains 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: UNLICENSED | |
pragma solidity ^0.8.13; | |
import "forge-std/Test.sol"; | |
contract SheHateMe { | |
receive() external payable {} | |
function getImpl(uint8 x) public returns (address) { | |
return address(this); |
This file contains 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.19; | |
import "forge-std/Test.sol"; | |
contract Utility { | |
error BadCalldata(); | |
error NonPayable(); | |
error Payable(); | |
error NoCode(); |
This file contains 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.19; | |
import "forge-std/Test.sol"; | |
contract UnrolledLoopTest is Test { | |
function _transfer1(uint256 counter) internal returns (uint256) { | |
// token.transfer(addressList[counter], amount); | |
return counter + 1; | |
} |
OlderNewer