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

Update contracts submodule pin to latest develop #1791

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

PlasmaPower
Copy link
Collaborator

@PlasmaPower PlasmaPower commented Aug 2, 2023

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#245 replaced with #1790

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Aug 2, 2023
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Merging #1791 (5e5c2b1) into master (64c03d8) will decrease coverage by 0.05%.
The diff coverage is 57.14%.

@@            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              

Copy link
Member

@Tristan-Wilson Tristan-Wilson left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines -266 to -278
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)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Comment on lines -280 to -296
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)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

@Tristan-Wilson Tristan-Wilson merged commit 5c43c63 into master Aug 4, 2023
8 checks passed
@PlasmaPower PlasmaPower deleted the update-contracts branch August 4, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants