Removed unnecessary call to isApiRestricted()

This commit is contained in:
CalDescent 2021-12-21 16:04:32 +00:00
parent 037eb8a163
commit 83d5bf45e5

View File

@ -448,9 +448,6 @@ public class TransactionsResource {
ApiError.NON_PRODUCTION, ApiError.TRANSFORMATION_ERROR
})
public String convertTransactionForSigning(String rawInputBytes58) {
if (Settings.getInstance().isApiRestricted())
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.NON_PRODUCTION);
byte[] rawInputBytes = Base58.decode(rawInputBytes58);
if (rawInputBytes.length == 0)
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.JSON);