Skip to content

Commit

Permalink
Merge pull request #26 from Big-Aaron/main
Browse files Browse the repository at this point in the history
Set the evm version of MagicNumber/Solver.huff to paris
  • Loading branch information
flyq committed Aug 17, 2023
2 parents 1ed2403 + 27aacc2 commit 5a562f9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
[submodule "lib/openzeppelin-contracts-05"]
path = lib/openzeppelin-contracts-05
url = https://github.com/OpenZeppelin/openzeppelin-contracts
branch = release-v2.5.0
[submodule "lib/openzeppelin-contracts-06"]
path = lib/openzeppelin-contracts-06
url = https://github.com/OpenZeppelin/openzeppelin-contracts
branch = release-v3.3
[submodule "lib/openzeppelin-contracts-08"]
path = lib/openzeppelin-contracts-08
url = https://github.com/OpenZeppelin/openzeppelin-contracts
branch = release-v4.9
[submodule "lib/foundry-huff"]
path = lib/foundry-huff
url = https://github.com/huff-language/foundry-huff
url = https://github.com/huff-language/foundry-huff
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts-06
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts-08
5 changes: 3 additions & 2 deletions src/Ethernaut/MagicNumber/MagicNum.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity 0.8.19;

import "forge-std/Test.sol";
import {HuffConfig} from "foundry-huff/HuffConfig.sol";
Expand All @@ -13,7 +13,8 @@ contract MagicNumTest is Test {

function setUp() public {
factory = new MagicNumFactory();
solverHuff = HuffDeployer.config().deploy("Ethernaut/MagicNumber/Solver");

solverHuff = HuffDeployer.config().with_evm_version("paris").deploy("Ethernaut/MagicNumber/Solver");
solverAssembly = address(new solver());

assertEq(Solver(address(solverAssembly)).whatIsTheMeaningOfLife(), bytes32(uint256(0x2a)));
Expand Down

0 comments on commit 5a562f9

Please sign in to comment.