Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(validium): fix validium init and server #1796

Merged
merged 32 commits into from May 6, 2024
Merged

chore(validium): fix validium init and server #1796

merged 32 commits into from May 6, 2024

Conversation

koloz193
Copy link
Contributor

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.
  • Linkcheck has been run via zk linkcheck.

Copy link
Member

@ilitteri ilitteri left a comment

Choose a reason for hiding this comment

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

The PR looks good in general. Left some comments with suggestions, nits, and spotted some errors, and questions.

I'm trying to run this locally like this

zk && zk clean --all && zk env dev_validium && zk init --validium mode

and I'm having these errors:

zk init

  1. While running the server in genesis (the same errors is in the CI)
    Error: Failed to save SetChainId upgrade transaction
    Caused by:
        Expected a single set_chain_id event, got these 0: []
    
  2. Error: TypeError: diamondProxy.setValidiumMode is not a function

server
We can't operate after tx fail -> revert_reason: "revert: pl"

I think that the server error is due to the error 2 I'm having during the init

infrastructure/zk/src/contract.ts Outdated Show resolved Hide resolved
infrastructure/zk/src/contract.ts Outdated Show resolved Hide resolved
infrastructure/zk/src/contract.ts Outdated Show resolved Hide resolved
infrastructure/zk/src/contract.ts Show resolved Hide resolved
.github/workflows/ci-core-reusable.yml Outdated Show resolved Hide resolved
.github/workflows/ci-core-reusable.yml Show resolved Hide resolved
.github/workflows/ci-core-reusable.yml Outdated Show resolved Hide resolved
@ilitteri
Copy link
Member

I'm trying to run this locally like this

zk && zk clean --all && zk env dev_validium && zk init --validium mode

and I'm having these errors:

zk init

1. While running the server in genesis (the same errors is [in the CI](https://github.com/matter-labs/zksync-era/actions/runs/8850782925/job/24305894473?pr=1796#step:6:2457))
   ```
   Error: Failed to save SetChainId upgrade transaction
   Caused by:
       Expected a single set_chain_id event, got these 0: []
   ```

2. Error: TypeError: diamondProxy.setValidiumMode is not a function

server We can't operate after tx fail -> revert_reason: "revert: pl"

I think that the server error is due to the error 2 I'm having during the init

Update:

  • Error: Failed to save SetChainId upgrade transaction is expected because there's a contract that is not deployed yet.
  • Error: TypeError: diamondProxy.setValidiumMode is not a function and We can't operate after tx fail -> revert_reason: "revert: pl" are fixed now.

@koloz193 koloz193 requested a review from popzxc April 30, 2024 17:57
core/bin/external_node/src/main.rs Show resolved Hide resolved
core/node/node_framework/examples/main_node.rs Outdated Show resolved Hide resolved
core/node/commitment_generator/Cargo.toml Outdated Show resolved Hide resolved
core/node/commitment_generator/src/lib.rs Outdated Show resolved Hide resolved
core/node/commitment_generator/Cargo.toml Outdated Show resolved Hide resolved
popzxc
popzxc previously approved these changes May 3, 2024
…oss_check

fix(Validium): `getPubdataPricingMode` contract call
@koloz193 koloz193 added this pull request to the merge queue May 6, 2024
Merged via the queue into main with commit 8d914ff May 6, 2024
51 checks passed
@koloz193 koloz193 deleted the zk-validium branch May 6, 2024 11:31
Deniallugo pushed a commit that referenced this pull request May 7, 2024
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.

---------

Co-authored-by: ilitteri <ilitteri@fi.uba.ar>
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.

None yet

7 participants