Skip to content

Commit

Permalink
Merge pull request #5934 from NomicFoundation/upgrade-edr
Browse files Browse the repository at this point in the history
Upgrade EDR
  • Loading branch information
alcuadrado authored Nov 7, 2024
2 parents bacea43 + 7290454 commit 9e5621d
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 145 deletions.
132 changes: 66 additions & 66 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions v-next/example-project/contracts/Counter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ contract CounterTest {
require(counter.x() == x, "Value after calling inc x times should be x");
}

function invariant() public pure {
assert(true);
}
// function invariant() public pure {
// assert(true);
// }
}

contract FailingCounterTest {
Expand All @@ -47,7 +47,7 @@ contract FailingCounterTest {
);
}

function invariant() public pure {
assert(false);
}
// function invariant() public pure {
// assert(false);
// }
}
13 changes: 13 additions & 0 deletions v-next/example-project/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@ const config: HardhatUserConfig = {
jsonRpcUrl: "https://mainnet.optimism.io",
},
},
opSepolia: {
type: "http",
chainType: "optimism",
url: "https://sepolia.optimism.io",
accounts: [configVariable("OP_SEPOLIA_SENDER")],
},
edrOpSepolia: {
type: "edr",
chainType: "optimism",
forkConfig: {
jsonRpcUrl: "https://sepolia.optimism.io",
},
},
},
tasks: [
exampleTaskOverride,
Expand Down
4 changes: 2 additions & 2 deletions v-next/example-project/scripts/send-op-tx-viem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ async function sendL2Transaction(networkConfigName: string) {
console.log("Transaction receipt:", receipt);
}

await sendL2Transaction("op");
await sendL2Transaction("opSepolia");
console.log("");
console.log("");
console.log("");
await sendL2Transaction("edrOp");
await sendL2Transaction("edrOpSepolia");
4 changes: 2 additions & 2 deletions v-next/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
"typescript-eslint": "7.7.1"
},
"dependencies": {
"@ignored/edr": "0.6.4-alpha.1",
"@ignored/edr-optimism": "^0.6.4",
"@ignored/edr": "0.6.4-alpha.2",
"@ignored/edr-optimism": "0.6.5-alpha.0",
"@ignored/hardhat-vnext-errors": "workspace:^3.0.0-next.14",
"@ignored/hardhat-vnext-utils": "workspace:^3.0.0-next.14",
"@ignored/hardhat-vnext-zod-utils": "workspace:^3.0.0-next.14",
Expand Down
Loading

0 comments on commit 9e5621d

Please sign in to comment.