Commit 2827e697 authored by Sebastian Stammler's avatar Sebastian Stammler Committed by GitHub

Merge pull request #8322 from ethereum-optimism/jg/fix_err_check_location

op-proposer: Fix err check location in test
parents ce306e5f 9d733bf0
...@@ -19,10 +19,10 @@ import ( ...@@ -19,10 +19,10 @@ import (
// setupL2OutputOracle deploys the L2 Output Oracle contract to a simulated backend // setupL2OutputOracle deploys the L2 Output Oracle contract to a simulated backend
func setupL2OutputOracle() (common.Address, *bind.TransactOpts, *backends.SimulatedBackend, *bindings.L2OutputOracle, error) { func setupL2OutputOracle() (common.Address, *bind.TransactOpts, *backends.SimulatedBackend, *bindings.L2OutputOracle, error) {
privateKey, err := crypto.GenerateKey() privateKey, err := crypto.GenerateKey()
from := crypto.PubkeyToAddress(privateKey.PublicKey)
if err != nil { if err != nil {
return common.Address{}, nil, nil, nil, err return common.Address{}, nil, nil, nil, err
} }
from := crypto.PubkeyToAddress(privateKey.PublicKey)
opts, err := bind.NewKeyedTransactorWithChainID(privateKey, big.NewInt(1337)) opts, err := bind.NewKeyedTransactorWithChainID(privateKey, big.NewInt(1337))
if err != nil { if err != nil {
return common.Address{}, nil, nil, nil, err return common.Address{}, nil, nil, nil, err
......
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