Commit 81a8324c authored by Mark Tyneway's avatar Mark Tyneway

op-proposer: log address on failed contract bindings

Ensures that the error is wrapped when failing to create
contract bindings to include the address. This is helpful
for when the wrong address is passed in and no contract
code exists at that particular account.
parent d16ca3a8
......@@ -187,7 +187,7 @@ func NewL2OutputSubmitter(cfg Config, l log.Logger, m metrics.Metricer) (*L2Outp
l2ooContract, err := bindings.NewL2OutputOracleCaller(cfg.L2OutputOracleAddr, cfg.L1Client)
if err != nil {
cancel()
return nil, err
return nil, fmt.Errorf("%w: address %s", err, cfg.L2OutputOracleAddr)
}
cCtx, cCancel := context.WithTimeout(ctx, cfg.NetworkTimeout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment