-
Notifications
You must be signed in to change notification settings - Fork 317
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
Create new rollup script #361
base: feature/audit-remediations
Are you sure you want to change the base?
Conversation
b7f88a9
to
59ce85c
Compare
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.
In the addRollupType
tool, we should include retrieving the bridge address from the PolygonZkEVMBridgeV2 proxy
as well.
This is because new genesis will not be PolygonZkEVMBridge proxy
, but either:
PolygonZkEVMBridgeV2 proxy
BridgeL2SovereignChain proxy
Provide description in the PR comment about the changes in this PR |
b119c8f
to
9744783
Compare
}; | ||
|
||
// Function to recursively convert BigInts to Numbers | ||
function convertBigIntsToNumbers(obj) { |
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.
what if a bigInt is large than 2**53 - 1 (max number in JS) ?
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.
If it's larger than 2 ** 53 - 1 it sets the value as 2 ** 53 - 1 . It's important to know this limitation when using that util (I will add a coment)
The decoded values that are being used now with this function are "rollupTypeID", "chainID", "value". None of them should be grater than 2**53 - 1 when creating a rollup. Anyway, it's also possible to present those values as strings
6d4fc97
to
d5f1c8a
Compare
cfd7476
to
dff3f3e
Compare
dff3f3e
to
664b0a1
Compare
c9d10f1
to
bcc4f01
Compare
Quality Gate passedIssues Measures |
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.
😸
This PR implements: