From 03040d9dcf9248dca21e9cafb3ceeda7c2887d29 Mon Sep 17 00:00:00 2001 From: octopus <912554887@qq.com> Date: Tue, 30 Nov 2021 00:23:31 +0800 Subject: [PATCH] fix address unrecognized type bug --- .../src/main/java/org/fisco/bcos/sdk/codec/ABICodec.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk-codec/src/main/java/org/fisco/bcos/sdk/codec/ABICodec.java b/sdk-codec/src/main/java/org/fisco/bcos/sdk/codec/ABICodec.java index e53a4668d..1e7cb9bfd 100644 --- a/sdk-codec/src/main/java/org/fisco/bcos/sdk/codec/ABICodec.java +++ b/sdk-codec/src/main/java/org/fisco/bcos/sdk/codec/ABICodec.java @@ -217,6 +217,11 @@ private Type buildType(ABIDefinition.NamedType namedType, String param) return type; } + if (typeStr.equals("address")) { + type = new Address(param); + return type; + } + if (typeStr.startsWith("bytes")) { String lengthStr = typeStr.substring("bytes".length()); int length;