berlin-gas-costs

Stars
8

Berlin gas costs

This is the companion repo to my article: Understanding gas costs after Berlin.

The code kind of sucks. Sorry.

Installation

Clone this repo and run npm install.

Geth

Before running the script, you should have a geth instance running on port 8545. Download geth v1.10.2 (or later) and run it like this:

geth --dev --http --http.port 8545 --http.api eth,debug,web3,net

Running the script

After starting the geth instance, run this in another terminal:

npx hardhat run --network localhost