From 363380b364dfcc9bcf72c583beec27cdca43f11c Mon Sep 17 00:00:00 2001 From: jose pablo Date: Fri, 3 Apr 2020 13:56:44 +0200 Subject: [PATCH] array type not supported --- pom.xml | 2 +- .../io/keyko/monitoring/services/Web3ParameterConverter.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 514c773..b791c91 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.keyko.monitoring web3-event-streamer - 0.2.5 + 0.2.6 Web3 Monitoring Event Streamer https://github.com/keyko-io/web3-event-streamer 2019 diff --git a/src/main/java/io/keyko/monitoring/services/Web3ParameterConverter.java b/src/main/java/io/keyko/monitoring/services/Web3ParameterConverter.java index e93b539..060bb08 100644 --- a/src/main/java/io/keyko/monitoring/services/Web3ParameterConverter.java +++ b/src/main/java/io/keyko/monitoring/services/Web3ParameterConverter.java @@ -16,6 +16,10 @@ public static Object convertWeb3Type(Type parameter, String name) throws TypeCon String parameterType = parameter.getTypeAsString(); + if (parameterType.contains("[")) + throw new TypeConversionException("Arrays not supported: " + parameterType); + + if (parameterType.equals("address")) return new StringParameter(name, parameterType, Keys.toChecksumAddress(parameter.toString()));