Skip to content

Conversation

@tmigone
Copy link
Member

@tmigone tmigone commented Aug 5, 2022

Motivation

This PR adds the local nitro networks L1 and L2 to hardhat and fixes a few bugs to allow deploying the protocol to those networks.

Changes

  • Add local nitro networks (L1 and L2) to hardhat
  • Fail gracefully if the network doesn't support evm_setAutomine on local networks. Nitro uses geth in dev mode which already has automine behaviour and doesn't support the RPC call.

@tmigone tmigone changed the base branch from dev to l2-testnet August 5, 2022 10:13
@tmigone tmigone requested review from abarmat and pcarranzav August 5, 2022 10:15
@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #674 (21e8695) into l2-testnet (3a22a27) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           l2-testnet     #674   +/-   ##
===========================================
  Coverage       92.13%   92.13%           
===========================================
  Files              44       44           
  Lines            2137     2137           
  Branches          370      370           
===========================================
  Hits             1969     1969           
  Misses            168      168           
Flag Coverage Δ
unittests 92.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

const sure = await confirm('Are you sure you want to migrate contracts?', skipConfirmation)
if (!sure) return

if (chainId == 1337) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we move the list of contracts to deploy to a config file we won't need this if/case

@tmigone tmigone merged commit 19de7a2 into l2-testnet Aug 5, 2022
@tmigone tmigone deleted the local-nitro branch August 5, 2022 14:54
tmigone added a commit that referenced this pull request Sep 5, 2022
tmigone added a commit that referenced this pull request Sep 6, 2022
tmigone added a commit that referenced this pull request Sep 6, 2022
tmigone added a commit that referenced this pull request Sep 7, 2022
tmigone added a commit that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants