Skip to content

Commit

Permalink
op-chain-ops: Fix the wrong variable in 'checkUpgradeTxs' (ethereum-o…
Browse files Browse the repository at this point in the history
…ptimism#11001)

* Fix the wrong variable in 'checkUpgradeTxs'

* Update op-chain-ops/genesis/config.go

Co-authored-by: protolambda <proto@protolambda.com>

* Update op-chain-ops/genesis/testdata/test-deploy-config-full.json

Co-authored-by: protolambda <proto@protolambda.com>

---------

Co-authored-by: protolambda <proto@protolambda.com>
  • Loading branch information
CarolAHHaydn and protolambda authored Jun 29, 2024
1 parent 45200bb commit 206fba8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions op-chain-ops/cmd/check-ecotone/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ func checkUpgradeTxs(ctx context.Context, env *actionEnv) error {
if err != nil {
return fmt.Errorf("failed to create eth client")
}
activBlock, txs, err := l2EthCl.InfoAndTxsByNumber(ctx, activationBlockNum)
activeBlock, txs, err := l2EthCl.InfoAndTxsByNumber(ctx, activationBlockNum)
if err != nil {
return fmt.Errorf("failed to get activation block: %w", err)
}
Expand All @@ -679,7 +679,7 @@ func checkUpgradeTxs(ctx context.Context, env *actionEnv) error {
return fmt.Errorf("unexpected non-deposit tx in activation block, index %d, hash %s", i, tx.Hash())
}
}
_, receipts, err := l2EthCl.FetchReceipts(ctx, activBlock.Hash())
_, receipts, err := l2EthCl.FetchReceipts(ctx, activeBlock.Hash())
if err != nil {
return fmt.Errorf("failed to fetch receipts of activation block: %w", err)
}
Expand Down Expand Up @@ -725,11 +725,11 @@ func checkGPO(ctx context.Context, env *actionEnv) error {
}
_, err = cl.Overhead(nil)
if err == nil || !strings.Contains(err.Error(), "revert") {
return fmt.Errorf("expected revert on legacy overhead attribute acccess, but got %w", err)
return fmt.Errorf("expected revert on legacy overhead attribute access, but got %w", err)
}
_, err = cl.Scalar(nil)
if err == nil || !strings.Contains(err.Error(), "revert") {
return fmt.Errorf("expected revert on legacy scalar attribute acccess, but got %w", err)
return fmt.Errorf("expected revert on legacy scalar attribute access, but got %w", err)
}
isEcotone, err := cl.IsEcotone(nil)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion op-chain-ops/genesis/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (d *DeployConfig) Check() error {
return fmt.Errorf("%w: DAResolveWindow cannot be 0 when using alt-da mode", ErrInvalidDeployConfig)
}
if !(d.DACommitmentType == plasma.KeccakCommitmentString || d.DACommitmentType == plasma.GenericCommitmentString) {
return fmt.Errorf("%w: DACommitmentType must be either KeccakCommtiment or GenericCommitment", ErrInvalidDeployConfig)
return fmt.Errorf("%w: DACommitmentType must be either KeccakCommitment or GenericCommitment", ErrInvalidDeployConfig)
}
}
if d.UseCustomGasToken {
Expand Down
2 changes: 1 addition & 1 deletion op-chain-ops/genesis/testdata/test-deploy-config-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"useFaultProofs": false,
"usePlasma": false,
"daBondSize": 0,
"daCommitmentType": "KeccakCommtiment",
"daCommitmentType": "KeccakCommitment",
"daChallengeProxy": "0x0000000000000000000000000000000000000000",
"daChallengeWindow": 0,
"daResolveWindow": 0,
Expand Down

0 comments on commit 206fba8

Please sign in to comment.