Skip to content

Commit f0c28c6

Browse files
authored
fix address unrecognized type bug (#423)
1 parent f149aaf commit f0c28c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk-codec/src/main/java/org/fisco/bcos/sdk/codec/ABICodec.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ private Type buildType(ABIDefinition.NamedType namedType, String param)
217217
return type;
218218
}
219219

220+
if (typeStr.equals("address")) {
221+
type = new Address(param);
222+
return type;
223+
}
224+
220225
if (typeStr.startsWith("bytes")) {
221226
String lengthStr = typeStr.substring("bytes".length());
222227
int length;

0 commit comments

Comments
 (0)