Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changeset/fix-hardhat-example-container.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

Lock the Hardhat dependencies for the Ethereum basic event handlers test container and run it with the default hardfork.
4 changes: 4 additions & 0 deletions examples/ethereum-basic-event-handlers/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const config: HardhatUserConfig = {
solidity: '0.4.25',
defaultNetwork: 'test',
networks: {
localhost: {
// Estimate gas per transaction instead of using the block gas limit.
gas: 'auto',
},
test: {
url: 'http://localhost:8545',
},
Expand Down
2 changes: 1 addition & 1 deletion examples/ethereum-basic-event-handlers/hardhat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN corepack enable

RUN corepack prepare pnpm@9.10.0 --activate

RUN pnpm install
RUN pnpm install --frozen-lockfile

COPY $PWD/entrypoint.sh /usr/local/bin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
module.exports = {
solidity: '0.8.9',
networks: {
hardhat: {
// Pin to Cancun: Prague (default in hardhat >=2.26) enforces EIP-7825's
// per-transaction gas cap of 2^24, which rejects the test deployments.
// Tracking proper fix (pin hardhat / lockfile / fit gas cap) in #2127.
hardfork: 'cancun',
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"localnode": "hardhat node --hostname 0.0.0.0"
},
"dependencies": {
"hardhat": "^2.22.1"
"hardhat": "2.28.6"
}
}
Loading