Skip to content

Commit

Permalink
Fix hedera service (#21)
Browse files Browse the repository at this point in the history
* Fix hedera service
  • Loading branch information
SergioIOB authored Dec 13, 2024
1 parent 6759c2b commit 65c33db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,11 @@ private String buildHederaService(BeanDefinitionRegistry registry, Node node) {
builder.addConstructorArgReference(
String.format(CONTRACT_EVENT_DETAILS_FACTORY_BEAN_NAME, node.getName()));
builder.addConstructorArgReference("defaultEventStoreService");
builder.addConstructorArgReference("broadcastingMessageListener");
builder.addConstructorArgReference("objectMapper");
builder.addConstructorArgReference("hederaClient");
builder.addConstructorArgValue(node);
builder.addConstructorArgValue(Executors.newScheduledThreadPool(10));
builder.addConstructorArgReference("modelMapper");
builder.addConstructorArgValue(globalOkHttpClient);

final String beanName = String.format(HEDERA_SERVICE_BEAN_NAME, node.getName());
registry.registerBeanDefinition(beanName, builder.getBeanDefinition());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import net.consensys.eventeum.integration.mixin.PageMixIn;
import org.modelmapper.ModelMapper;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
Expand All @@ -30,7 +29,7 @@
* @author Craig Williams <[email protected]>
*/
@AutoConfiguration
@ConditionalOnClass(ModelMapper.class)
@ConditionalOnClass(ObjectMapper.class)
public class JacksonAutoConfiguration {

@Bean
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</modules>

<properties>
<eventeum.core.version>2.0.0</eventeum.core.version>
<eventeum.core.version>2.0.1</eventeum.core.version>
<java.version>21</java.version>
<web3j.version>4.12.0</web3j.version>
<springcloud.version>4.1.2</springcloud.version>
Expand Down

0 comments on commit 65c33db

Please sign in to comment.