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

Fix: adding the chainId to the HUB and BLOCK_DATA modules #1359

Merged
merged 10 commits into from
Oct 3, 2024

Conversation

OlivierBBB
Copy link
Collaborator

No description provided.

@OlivierBBB OlivierBBB linked an issue Oct 2, 2024 that may be closed by this pull request
@@ -91,8 +91,10 @@ public ZkTracer(BigInteger chainId) {

public ZkTracer(
final LineaL1L2BridgeSharedConfiguration bridgeConfiguration, BigInteger chainId) {
this.hub = new Hub(bridgeConfiguration.contract(), bridgeConfiguration.topic());
this.chainId = chainId;
BigInteger nonnegativeChainId = chainId.abs();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For some reason the chainId sometimes gets interpreted as a negative integer.

bradbown and others added 3 commits October 2, 2024 22:41
Signed-off-by: Francois Bojarski <francois.bojarski@consensys.net>
Copy link
Collaborator

@letypequividelespoubelles letypequividelespoubelles left a comment

Choose a reason for hiding this comment

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

It's fixing the referenceTest, but we still don't get the chainId from Besu in prod, so now it'll be broken.

BigInteger nonnegativeChainId = chainId.abs();
this.hub =
new Hub(bridgeConfiguration.contract(), bridgeConfiguration.topic(), nonnegativeChainId);
this.chainId = nonnegativeChainId;
Copy link
Collaborator

Choose a reason for hiding this comment

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

we just need to give it to the HUB, no need to keep it in the ZkTracer

Copy link
Collaborator

@letypequividelespoubelles letypequividelespoubelles left a comment

Choose a reason for hiding this comment

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

Please address comment in a future PR

@OlivierBBB OlivierBBB enabled auto-merge (squash) October 3, 2024 12:44
@OlivierBBB OlivierBBB disabled auto-merge October 3, 2024 12:54
@OlivierBBB OlivierBBB enabled auto-merge (squash) October 3, 2024 12:54
@OlivierBBB OlivierBBB disabled auto-merge October 3, 2024 12:56
@OlivierBBB OlivierBBB merged commit b6677b7 into arith-dev Oct 3, 2024
5 checks passed
@OlivierBBB OlivierBBB deleted the 1357-fix-chainid branch October 3, 2024 12:56
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.

Fix CHAINID
3 participants