Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

miguelmota/hardhat-optimism-example

Repository files navigation

Optimism Hardhat example

Example using Hardhat toolchain to deploy to Optimism L2

Getting started

Clone repository:

git clone git@github.com:miguelmota/hardhat-optimism-example.git
cd hardhat-optimism-example/

Install dependencies:

npm install

Set up environment variables in .env (use your own):

PRIVATE_KEY=0x754fde3f5e60ef2c7649061e06957c29017fe21032a8017132c0078e37f6193a
L2_NODE_URL=https://kovan.optimism.io

Build contract OVM bytecode:

npm run build

Deploy to L2:

npm run deploy

License

MIT