Skip to content

Commit a5b8cd5

Browse files
committed
linter fix
1 parent 1ed2128 commit a5b8cd5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dataavailability/datacommittee/datacommittee_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"github.com/0xPolygonHermez/zkevm-node/etherman/smartcontracts/polygondatacommittee"
88
"github.com/0xPolygonHermez/zkevm-node/log"
99
"github.com/ethereum/go-ethereum/accounts/abi/bind"
10-
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
1110
"github.com/ethereum/go-ethereum/common"
1211
"github.com/ethereum/go-ethereum/core"
1312
"github.com/ethereum/go-ethereum/crypto"
13+
"github.com/ethereum/go-ethereum/ethclient/simulated"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
1616
)
@@ -63,7 +63,7 @@ func init() {
6363
// This function prepare the blockchain, the wallet with funds and deploy the smc
6464
func newTestingEnv(t *testing.T) (
6565
dac *DataCommitteeBackend,
66-
ethBackend *backends.SimulatedBackend,
66+
ethBackend *simulated.Backend,
6767
auth *bind.TransactOpts,
6868
da *polygondatacommittee.Polygondatacommittee,
6969
) {
@@ -87,7 +87,7 @@ func newTestingEnv(t *testing.T) (
8787
// must be 1337. The address that holds the auth will have an initial balance of 10 ETH
8888
func newSimulatedDacman(t *testing.T, auth *bind.TransactOpts) (
8989
dacman *DataCommitteeBackend,
90-
ethBackend *backends.SimulatedBackend,
90+
ethBackend *simulated.Backend,
9191
da *polygondatacommittee.Polygondatacommittee,
9292
err error,
9393
) {
@@ -105,10 +105,10 @@ func newSimulatedDacman(t *testing.T, auth *bind.TransactOpts) (
105105
},
106106
}
107107
blockGasLimit := uint64(999999999999999999) //nolint:gomnd
108-
client := backends.NewSimulatedBackend(genesisAlloc, blockGasLimit)
108+
client := simulated.NewBackend(genesisAlloc, simulated.WithBlockGasLimit(blockGasLimit))
109109

110110
// DAC Setup
111-
_, _, da, err = polygondatacommittee.DeployPolygondatacommittee(auth, client)
111+
_, _, da, err = polygondatacommittee.DeployPolygondatacommittee(auth, client.Client())
112112
if err != nil {
113113
return &DataCommitteeBackend{}, nil, nil, err
114114
}

0 commit comments

Comments
 (0)