Skip to content

Commit

Permalink
fix: failing market test
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev committed Jan 29, 2024
1 parent bee9843 commit e44d381
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ defmodule Explorer.Chain.SmartContract.AuditReport do
|> cast(attrs, @optional_fields ++ @required_fields)
|> validate_required(@required_fields, message: "Required")
|> validate_length(:submitter_email, max: @max_string_length)
|> validate_format(:submitter_email, ~r/^[A-Z0-9._%+-]+@[A-Z0-9-]+.+.[A-Z]{2,4}$/i, message: "invalid email address")
|> validate_format(:submitter_email, ~r/^[A-Z0-9._%+-]+@[A-Z0-9-]+.+.[A-Z]{2,4}$/i,
message: "invalid email address"
)
|> validate_format(:submitter_name, ~r/[a-zA-Z ]+/i, message: "only letters are allowed")
|> validate_length(:submitter_name, max: @max_string_length)
|> validate_length(:project_name, max: @max_string_length)
Expand Down
2 changes: 2 additions & 0 deletions apps/explorer/test/explorer/market/market_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ defmodule Explorer.MarketTest do
end

test "fetch_recent_history/1" do
ConCache.delete(:market_history, :last_update)

today = Date.utc_today()

records =
Expand Down

0 comments on commit e44d381

Please sign in to comment.