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.26; | |
import {Test, console} from "forge-std/Test.sol"; | |
// Ran 2 tests for test/Counter.t copy 2.sol:VarCreation | |
// [PASS] test_test1() (gas: 18480) | |
// [PASS] test_test2() (gas: 18320) | |
contract VarCreation is 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.26; | |
import {Test, console} from "forge-std/Test.sol"; | |
// Ran 2 tests for test/Counter.t copy.sol:LenCalldata | |
// [PASS] test_test1() (gas: 15999) | |
// [PASS] test_test2() (gas: 15979) | |
contract LenCalldata is 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.26; | |
import {Test, console} from "forge-std/Test.sol"; | |
// Ran 6 tests for test/Counter.t.sol:CounterTest | |
// [PASS] test_test1E2E(uint256) (runs: 258, μ: 31839, ~: 31839) | |
// [PASS] test_test1Set() (gas: 27750) | |
// [PASS] test_test1Test() (gas: 28762) | |
// [PASS] test_test2E2E(uint256) (runs: 258, μ: 31631, ~: 31631) |
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: None | |
pragma solidity ^0.8.17; | |
import { Test } from "forge-std/Test.sol"; | |
import { Gate, IGuardian } from "../src/Gate.sol"; | |
/** | |
* @title Answer to the Gate Challenge | |
* | |
* @notice The logic summarized is, for every calls to guardian, the following |
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.25; | |
import {Test} from 'forge-std/Test.sol'; | |
contract DeployRevert { | |
constructor() { | |
revert("DeployRevert"); | |
} | |
} |
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: GPL-3.0 | |
// no optimization | |
pragma solidity 0.8.19; | |
contract A { | |
event Log(string bleh); | |
// Pass an arbitrary bytecode offset, then make it a fn pointer and call it | |
function callme(bytes32 _offset) external { |
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
pragma solidity 0.8.16; | |
// optim 200 runs | |
contract Test { //27038 | |
struct StructA { | |
uint128 _a; | |
uint128 _b; | |
} | |
StructA structA; |
I hereby claim:
- I am drgorillamd on github.
- I am drgorilla_md (https://keybase.io/drgorilla_md) on keybase.
- I have a public key ASDSuXEe25NwE38lIIjbDUrB4KvUupKF6LcnYkEcqyCoWQo
To claim this, I am signing this object:
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
pragma solidity 0.8.7; | |
interface IE { | |
function setN() external; | |
} | |
contract D { | |
uint public n; | |
uint private temp; |
NewerOlder