Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgeorgiev committed Oct 4, 2023
2 parents 1137e83 + f916d8b commit c476326
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ junitBom=5.2.0
assertjVersion=3.20.2

# WE SDK libs
weNodeClientVersion=1.0.0
weContractSdkVersion=1.3.0
weNodeClientVersion=1.1.0
weContractSdkVersion=1.3.1

# GitHub properties
gitHubProject=waves-enterprise/we-spring-sdk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.wavesenterprise.sdk.spring.autoconfigure.contract

import com.wavesenterprise.sdk.atomic.AtomicAwareTxSigner
import com.wavesenterprise.sdk.contract.client.invocation.factory.ContractBlockingClientFactory
import com.wavesenterprise.sdk.contract.core.converter.factory.ConverterFactory
import com.wavesenterprise.sdk.contract.core.state.LocalValidationContextManager
import com.wavesenterprise.sdk.spring.autoconfigure.contract.properties.ContractConfigurationPropertiesForSignRequestBuilderFactory
import com.wavesenterprise.sdk.spring.autoconfigure.contract.validation.ApplicationContextAwareContractValidation
import com.wavesenterprise.sdk.tx.signer.TxSigner
import org.springframework.beans.BeansException
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory
import org.springframework.beans.factory.support.AbstractBeanDefinition
Expand Down Expand Up @@ -49,7 +49,7 @@ class ContractBlockingClientFactoryRegistryPostProcessor(
} ?: beanInfo.txSignerBeanName?.let {
if (it.isBlank()) null else addConstructorArgReference(it)
} ?: try {
addConstructorArgValue(applicationContext.getBean(AtomicAwareTxSigner::class.java))
addConstructorArgValue(applicationContext.getBean(TxSigner::class.java))
} catch (ex: BeansException) {
addConstructorArgReference("txSigner")
}
Expand Down

0 comments on commit c476326

Please sign in to comment.