Skip to content

Commit

Permalink
Remove _test db url check for 0195 evm chain id migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Sep 16, 2023
1 parent 4c903c4 commit 81a495a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package migrations
import (
"context"
"database/sql"
"strings"

"github.com/pressly/goose/v3"

Expand Down Expand Up @@ -53,8 +52,7 @@ func Up195(ctx context.Context, tx *sql.Tx) error {
return err
}

url := cfg.Database().URL()
if cfg.EVMEnabled() && !strings.Contains(url.String(), "_test") {
if cfg.EVMEnabled() {
chainID := cfg.EVMConfigs()[0].ChainID
_, err = tx.ExecContext(ctx, up195_1, chainID)
if err != nil {
Expand Down

0 comments on commit 81a495a

Please sign in to comment.