Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(zk_toolbox): fix port offset for new chains (#2803)
## What ❔ Fixed port offset for newly created chains via `zk_inception`: - Use `chain.id` instead of `chain.chain_id` - Use `(chain.id - 1) * 100` as an offset to keep the port for the first chain as 3050 ## Why ❔ Using `chain.chain_id` was not intended as the resulting port number could potentially overflow. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`.
- Loading branch information