-
Notifications
You must be signed in to change notification settings - Fork 435
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
Update contracts submodule pin to latest develop #1791
Conversation
402164f
to
386d5ad
Compare
Codecov Report
@@ Coverage Diff @@
## master #1791 +/- ##
==========================================
- Coverage 56.70% 56.65% -0.05%
==========================================
Files 222 222
Lines 33572 33552 -20
==========================================
- Hits 19036 19008 -28
- Misses 12178 12186 +8
Partials 2358 2358 |
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.
LGTM
sequencerInbox, err := bridgegen.NewSequencerInbox(info.SequencerInbox, l1client) | ||
if err != nil { | ||
return nil, fmt.Errorf("error getting sequencer inbox: %w", err) | ||
} | ||
|
||
// if a zero sequencer address is specified, don't authorize any sequencers | ||
if sequencer != (common.Address{}) { | ||
tx, err = sequencerInbox.SetIsBatchPoster(deployAuth, sequencer, true) | ||
err = andTxSucceeded(ctx, l1Reader, tx, err) | ||
if err != nil { | ||
return nil, fmt.Errorf("error setting is batch poster: %w", err) | ||
} | ||
} |
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.
Confirmed this logic has been moved into the contract https://github.com/OffchainLabs/nitro-contracts/blame/252e690df81dc6555e036c9b1f76a374721bcfd6/src/rollup/RollupCreator.sol#L86
var allowValidators []bool | ||
var validatorAddrs []common.Address | ||
for i := uint64(1); i <= authorizeValidators; i++ { | ||
validatorAddrs = append(validatorAddrs, crypto.CreateAddress(validatorWalletCreator, i)) | ||
allowValidators = append(allowValidators, true) | ||
} | ||
if len(validatorAddrs) > 0 { | ||
rollup, err := rollupgen.NewRollupAdminLogic(info.RollupAddress, l1client) | ||
if err != nil { | ||
return nil, fmt.Errorf("error getting rollup admin: %w", err) | ||
} | ||
tx, err = rollup.SetValidator(deployAuth, validatorAddrs, allowValidators) | ||
err = andTxSucceeded(ctx, l1Reader, tx, err) | ||
if err != nil { | ||
return nil, fmt.Errorf("error setting validator: %w", err) | ||
} | ||
} |
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.
Confirmed this logic was moved into the contract https://github.com/OffchainLabs/nitro-contracts/blame/252e690df81dc6555e036c9b1f76a374721bcfd6/src/rollup/RollupCreator.sol#L139
The notable change in the contracts is that the RollupCreator now accepts a batch poster and list of validators to authorize as part of the deployment.
This PR also bumps geth to the latest master to include OffchainLabs/go-ethereum#245replaced with #1790