diff --git a/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Contract.kt b/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Contract.kt index 7cf4d6fc..430077cb 100644 --- a/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Contract.kt +++ b/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Contract.kt @@ -11,7 +11,6 @@ import fund.cyber.cassandra.ethereum.repository.PageableEthereumContractMinedBlo import fund.cyber.cassandra.ethereum.repository.PageableEthereumContractMinedUncleRepository import fund.cyber.cassandra.ethereum.repository.PageableEthereumContractTxRepository import fund.cyber.common.toSearchEthereumHashFormat -import fund.cyber.common.toSearchHashFormat import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.DependsOn @@ -27,7 +26,7 @@ class EthereumContractHandlersConfiguration { EthereumContractTxRepository::class.java ) { request, conractRepository, contractTxRepository -> - val contractId = request.pathVariable("hash").toSearchHashFormat().toLowerCase() + val contractId = request.pathVariable("hash").toSearchEthereumHashFormat() val contract = conractRepository.findById(contractId) val contractUnconfirmedTxes = contractTxRepository.findAllByContractHashAndBlockTime(contractId, -1) diff --git a/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Transaction.kt b/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Transaction.kt index c1075bca..f492a652 100644 --- a/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Transaction.kt +++ b/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Transaction.kt @@ -4,7 +4,6 @@ import fund.cyber.api.common.SingleRepositoryItemRequestHandler import fund.cyber.api.common.asServerResponse import fund.cyber.cassandra.ethereum.repository.EthereumTxRepository import fund.cyber.common.toSearchEthereumHashFormat -import fund.cyber.common.toSearchHashFormat import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.DependsOn diff --git a/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Uncle.kt b/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Uncle.kt index 7df1ef5d..7e200f9e 100644 --- a/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Uncle.kt +++ b/search-api/src/main/kotlin/fund/cyber/api/ethereum/handlers/Uncle.kt @@ -4,7 +4,6 @@ import fund.cyber.api.common.SingleRepositoryItemRequestHandler import fund.cyber.api.common.asServerResponse import fund.cyber.cassandra.ethereum.repository.EthereumUncleRepository import fund.cyber.common.toSearchEthereumHashFormat -import fund.cyber.common.toSearchHashFormat import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.DependsOn