Skip to content

maintance: replaced l2Provider with env.l2Provider#2162

Merged
tynes merged 1 commit intoethereum-optimism:developfrom
tonykogias:remove-variable-in-whitelist.spec.ts
Feb 23, 2022
Merged

maintance: replaced l2Provider with env.l2Provider#2162
tynes merged 1 commit intoethereum-optimism:developfrom
tonykogias:remove-variable-in-whitelist.spec.ts

Conversation

@tonykogias
Copy link
Copy Markdown
Contributor

Description
Replaced l2Provider with env.l2Provider in whitelist.spec.ts, rpc.spec.ts & ovmcontext.spec.ts

Metadata

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 7, 2022

🦋 Changeset detected

Latest commit: 45642dc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/integration-tests Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the A-integration Area: integration tests label Feb 7, 2022
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 7, 2022

Codecov Report

Merging #2162 (45642dc) into develop (752a2d1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2162   +/-   ##
========================================
  Coverage    73.35%   73.35%           
========================================
  Files           84       84           
  Lines         2766     2766           
  Branches       472      472           
========================================
  Hits          2029     2029           
  Misses         737      737           
Flag Coverage Δ
batch-submitter 62.63% <ø> (ø)
contracts 90.48% <ø> (ø)
core-utils 87.80% <ø> (ø)
data-transport-layer 36.89% <ø> (ø)
sdk 59.97% <ø> (ø)

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


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 752a2d1...45642dc. Read the comment docs.

envConfig,
DEFAULT_TEST_GAS_L1,
} from './shared/utils'
import { l1Provider, envConfig, DEFAULT_TEST_GAS_L1 } from './shared/utils'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Might as well also do this with l1Provider since we're at it!

describe('OVM Context: Layer 2 EVM Context', () => {
const L2Provider = injectL2Context(l2Provider)
let env: OptimismEnv
let L2Provider: providers.JsonRpcProvider
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this global L2Provider used? Can we use the env.l2Provider?

let wallet: Wallet

const provider = injectL2Context(l2Provider)
let provider: providers.JsonRpcProvider
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This provider could probably be replaced with env.l2Provider

@tonykogias
Copy link
Copy Markdown
Contributor Author

tonykogias commented Feb 8, 2022

@tynes @smartcontracts I think that all those variables are the same, should I just replace them with env.l2Provider and do the same for l1Provider?

const L2Provider = asL2Provider(l2Provider)

l2Provider = asL2Provider(env.l2Wallet.provider as any)

const provider = asL2Provider(l2Provider)

@smartcontracts
Copy link
Copy Markdown
Contributor

Yeah I think it would be best to replace every usage of the global l1Provider and l2Provider variables with env.l1Provider and env.l2Provider. Not really sure why we have those globals.

@tonykogias
Copy link
Copy Markdown
Contributor Author

@smartcontracts I made a new commit let me know if that works.

@tynes
Copy link
Copy Markdown
Contributor

tynes commented Feb 11, 2022

Do you mind adding a changeset for the integration tests, fixing the merge conflict and then squashing into a single commit?

@tonykogias
Copy link
Copy Markdown
Contributor Author

Do you mind adding a changeset for the integration tests, fixing the merge conflict and then squashing into a single commit?

Done! Let me know if it needs anything else.

Copy link
Copy Markdown
Contributor

@smartcontracts smartcontracts left a comment

Choose a reason for hiding this comment

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

Great work as usual!

@tynes tynes merged commit 43f16dd into ethereum-optimism:develop Feb 23, 2022
theochap pushed a commit that referenced this pull request Dec 10, 2025
### Description

Creates an rpc server for the `kona-node` that will service the
supervisor.

Progress on #2108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-integration Area: integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unnecessary variable in whitelist.spec.ts

4 participants