Skip to content

Commit

Permalink
check for custom network
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikebbers committed Jul 14, 2024
1 parent c373f0b commit a9be1fb
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ private void handleError(HttpRequest request, ClientHttpResponse response) throw

@Override
public ContractVerificationState verify(ContractId contractId, String contractName, Map<String, String> files) {
checkSupportedNetwork();

final ContractVerificationState state = checkVerification(contractId);
if(state != ContractVerificationState.NONE) {
throw new IllegalStateException("Contract is already verified");
Expand Down Expand Up @@ -139,7 +137,6 @@ public ContractVerificationState verify(ContractId contractId, String contractNa

@Override
public ContractVerificationState checkVerification(ContractId contractId) {
checkSupportedNetwork();

final String uri = CONTRACT_VERIFICATION_URL + "/check-by-addresses" + "?addresses=" + contractId.toSolidityAddress() + "&chainIds=" + getChainId();

Expand Down Expand Up @@ -182,8 +179,6 @@ public ContractVerificationState checkVerification(ContractId contractId) {

@Override
public boolean checkVerification(ContractId contractId, String fileName, String fileContent) {
checkSupportedNetwork();

final ContractVerificationState state = checkVerification(contractId);
if(state != ContractVerificationState.FULL) {
throw new IllegalStateException("Contract is not verified");
Expand Down

0 comments on commit a9be1fb

Please sign in to comment.