From a9be1fbbc8577cdbd5aba7254b3e80acc11b93db Mon Sep 17 00:00:00 2001 From: Hendrik Ebbers Date: Sun, 14 Jul 2024 14:40:37 +0200 Subject: [PATCH] check for custom network --- .../ContractVerificationClientImplementation.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spring-hedera/src/main/java/com/openelements/spring/hedera/implementation/ContractVerificationClientImplementation.java b/spring-hedera/src/main/java/com/openelements/spring/hedera/implementation/ContractVerificationClientImplementation.java index b9e61e88..0648e9da 100644 --- a/spring-hedera/src/main/java/com/openelements/spring/hedera/implementation/ContractVerificationClientImplementation.java +++ b/spring-hedera/src/main/java/com/openelements/spring/hedera/implementation/ContractVerificationClientImplementation.java @@ -72,8 +72,6 @@ private void handleError(HttpRequest request, ClientHttpResponse response) throw @Override public ContractVerificationState verify(ContractId contractId, String contractName, Map files) { - checkSupportedNetwork(); - final ContractVerificationState state = checkVerification(contractId); if(state != ContractVerificationState.NONE) { throw new IllegalStateException("Contract is already verified"); @@ -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(); @@ -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");