Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Feb 5, 2025
1 parent 01c995d commit 1f0d48f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 4 additions & 2 deletions testing/endtoend/e2e_delegated_staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,13 @@ func TestEndToEnd_DelegatedStaking(t *testing.T) {
require.NoError(t, err)
tx, err := rollupUserLogic.AddToDeposit(fundsCustodianOpts, honestTxOpts.From, fundsCustodianOpts.From, balCustodian)
require.NoError(t, err)
bind.WaitMined(honestCtx, bk.Client(), tx)
_, err = bind.WaitMined(honestCtx, bk.Client(), tx)
require.NoError(t, err)

tx, err = rollupUserLogic.AddToDeposit(evilFundsCustodianOpts, evilTxOpts.From, evilFundsCustodianOpts.From, balEvilCustodian)
require.NoError(t, err)
bind.WaitMined(honestCtx, bk.Client(), tx)
_, err = bind.WaitMined(evilCtx, bk.Client(), tx)
require.NoError(t, err)

t.Log("Delegated validators now have a deposit balance")

Expand Down
6 changes: 1 addition & 5 deletions testing/setup/rollup_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,7 @@ func ChainsWithEdgeChallengeManager(opts ...Opt) (*ChainSetup, error) {
if !ok {
return nil, errors.New("could not set big int")
}
numAccountsToFund := len(accs)
if setp.numFundedAccounts > 0 {
numAccountsToFund = int(setp.numFundedAccounts)
}
for i := 0; i < numAccountsToFund; i++ {
for i := 0; i < len(accs); i++ {
acc := accs[i]
transferTx, err := tokenBindings.TestWETH9Transactor.Transfer(accs[0].TxOpts, acc.TxOpts.From, seed)
if err != nil {
Expand Down

0 comments on commit 1f0d48f

Please sign in to comment.