Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
[withdrawal_safety_fixes] update l2 communication
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethen Pociask committed Nov 8, 2023
1 parent f186b4a commit 6d074bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions internal/engine/registry/l1_withdrawal_safety.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/base-org/pessimism/internal/engine/heuristic"
"github.com/base-org/pessimism/internal/logging"
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"

Expand Down Expand Up @@ -212,9 +211,7 @@ func (wsh *L1WithdrawalSafety) Assess(td core.TransitData) (*heuristic.Activatio
b := []byte(corrWithdrawal.Amount)
withdrawalWEI := big.NewInt(0).SetBytes(b)

correlated, err := wsh.l2ToL1MsgPasser.SentMessages(&bind.CallOpts{
BlockNumber: big.NewInt(int64(log.BlockNumber)),
}, wm.Hash)
correlated, err := wsh.l2ToL1MsgPasser.SentMessages(nil, wm.Hash)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/engine/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func constructFaultDetector(ctx context.Context, isp *core.SessionParams) (heuri
return NewFaultDetector(ctx, cfg)
}

// constructWithdrawalSafety ... Constructs a large withdrawal heuristic instance
// constructWithdrawalSafety ... Constructs a withdrawal safety heuristic instance
func constructWithdrawalSafety(ctx context.Context, isp *core.SessionParams) (heuristic.Heuristic, error) {
cfg := &WithdrawalSafetyCfg{}
err := cfg.Unmarshal(isp)
Expand Down

0 comments on commit 6d074bc

Please sign in to comment.