-
Notifications
You must be signed in to change notification settings - Fork 33
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
Conversation
@@ -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(); |
There was a problem hiding this comment.
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.
Signed-off-by: Francois Bojarski <francois.bojarski@consensys.net>
There was a problem hiding this 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; |
There was a problem hiding this comment.
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
There was a problem hiding this 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
No description provided.