Skip to content

Commit

Permalink
chore: use range over integer
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Jul 2, 2024
1 parent 42e4f2c commit 7d69f1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions oracle/pkg/updater/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestUpdater(t *testing.T) {

signer := types.NewLondonSigner(big.NewInt(5))
var txns []*types.Transaction
for i := 0; i < 10; i++ {
for i := range 10 {
txns = append(txns, types.MustSignNewTx(key, signer, &types.DynamicFeeTx{
Nonce: uint64(i + 1),
Gas: 1000000,
Expand Down Expand Up @@ -147,7 +147,7 @@ func TestUpdater(t *testing.T) {
}

// constructing bundles
for i := 0; i < 10; i++ {
for i := range 10 {
idxBytes := getIdxBytes(int64(i + 10))

bundle := strings.TrimPrefix(txns[i].Hash().Hex(), "0x")
Expand Down Expand Up @@ -360,7 +360,7 @@ func TestUpdaterRevertedTxns(t *testing.T) {

signer := types.NewLondonSigner(big.NewInt(5))
var txns []*types.Transaction
for i := 0; i < 10; i++ {
for i := range 10 {
txns = append(txns, types.MustSignNewTx(key, signer, &types.DynamicFeeTx{
Nonce: uint64(i + 1),
Gas: 1000000,
Expand Down Expand Up @@ -408,7 +408,7 @@ func TestUpdaterRevertedTxns(t *testing.T) {
}

// constructing bundles
for i := 0; i < 10; i++ {
for i := range 10 {
idxBytes := getIdxBytes(int64(i + 10))

bundle := strings.TrimPrefix(txns[i].Hash().Hex(), "0x")
Expand Down Expand Up @@ -625,7 +625,7 @@ func TestUpdaterBundlesFailure(t *testing.T) {

signer := types.NewLondonSigner(big.NewInt(5))
var txns []*types.Transaction
for i := 0; i < 10; i++ {
for i := range 10 {
txns = append(txns, types.MustSignNewTx(key, signer, &types.DynamicFeeTx{
Nonce: uint64(i + 1),
Gas: 1000000,
Expand Down Expand Up @@ -811,7 +811,7 @@ func TestUpdaterIgnoreCommitments(t *testing.T) {

signer := types.NewLondonSigner(big.NewInt(5))
var txns []*types.Transaction
for i := 0; i < 10; i++ {
for i := range 10 {
txns = append(txns, types.MustSignNewTx(key, signer, &types.DynamicFeeTx{
Nonce: uint64(i + 1),
Gas: 1000000,
Expand Down

0 comments on commit 7d69f1f

Please sign in to comment.