|
|
@ -52,6 +52,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => if(contract.optimization, do: "1", else: "0") |
|
|
|
"OptimizationUsed" => if(contract.optimization, do: "1", else: "0") |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -75,6 +76,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => "" |
|
|
|
"OptimizationUsed" => "" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -99,6 +101,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => "" |
|
|
|
"OptimizationUsed" => "" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -127,6 +130,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => "" |
|
|
|
"OptimizationUsed" => "" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -151,6 +155,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => if(contract.optimization, do: "1", else: "0") |
|
|
|
"OptimizationUsed" => if(contract.optimization, do: "1", else: "0") |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -175,6 +180,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => "" |
|
|
|
"OptimizationUsed" => "" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -199,6 +205,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => "" |
|
|
|
"OptimizationUsed" => "" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -250,6 +257,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => "" |
|
|
|
"OptimizationUsed" => "" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -279,6 +287,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do |
|
|
|
"OptimizationUsed" => "" |
|
|
|
"OptimizationUsed" => "" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|