|
|
@ -36,7 +36,8 @@ defmodule BlockScoutWeb.AddressContractVerificationTest do |
|
|
|
contract_name: name, |
|
|
|
contract_name: name, |
|
|
|
version: version, |
|
|
|
version: version, |
|
|
|
optimization: false, |
|
|
|
optimization: false, |
|
|
|
source_code: source_code |
|
|
|
source_code: source_code, |
|
|
|
|
|
|
|
evm_version: "byzantium" |
|
|
|
}) |
|
|
|
}) |
|
|
|
|> ContractVerifyPage.verify_and_publish() |
|
|
|
|> ContractVerifyPage.verify_and_publish() |
|
|
|
|
|
|
|
|
|
|
@ -48,7 +49,13 @@ defmodule BlockScoutWeb.AddressContractVerificationTest do |
|
|
|
|
|
|
|
|
|
|
|
session |
|
|
|
session |
|
|
|
|> ContractVerifyPage.visit_page("0x1e0eaa06d02f965be2dfe0bc9ff52b2d82133461") |
|
|
|
|> ContractVerifyPage.visit_page("0x1e0eaa06d02f965be2dfe0bc9ff52b2d82133461") |
|
|
|
|> ContractVerifyPage.fill_form(%{contract_name: "", version: nil, optimization: nil, source_code: ""}) |
|
|
|
|> ContractVerifyPage.fill_form(%{ |
|
|
|
|
|
|
|
contract_name: "", |
|
|
|
|
|
|
|
version: nil, |
|
|
|
|
|
|
|
optimization: nil, |
|
|
|
|
|
|
|
source_code: "", |
|
|
|
|
|
|
|
evm_version: "byzantium" |
|
|
|
|
|
|
|
}) |
|
|
|
|> ContractVerifyPage.verify_and_publish() |
|
|
|
|> ContractVerifyPage.verify_and_publish() |
|
|
|
|> assert_has(ContractVerifyPage.validation_error()) |
|
|
|
|> assert_has(ContractVerifyPage.validation_error()) |
|
|
|
end |
|
|
|
end |
|
|
|