diff --git a/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java b/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java index bf213ee4..c0161e68 100644 --- a/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java +++ b/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java @@ -77,7 +77,16 @@ public String getElementInternalType(int index) { /** * If the compiler can't infer the return type, use a type witness. - * + *

+ * From Java: + *

+     *     {@code TypeFactory.>>create("(int8)").>get(0).encode(12)}
+     * 

+ *

+ * From Kotlin: + *

+     *     {@code TypeFactory.create>>("(int8)").get>(0).encode(12)}
+     * 

* @param index * @return * @param diff --git a/src/main/java/com/esaulpaugh/headlong/abi/TypeFactory.java b/src/main/java/com/esaulpaugh/headlong/abi/TypeFactory.java index 127665b8..09145858 100644 --- a/src/main/java/com/esaulpaugh/headlong/abi/TypeFactory.java +++ b/src/main/java/com/esaulpaugh/headlong/abi/TypeFactory.java @@ -107,7 +107,16 @@ private static void mapByteArray(Map> map, String type, int a /** * If the compiler can't infer the return type, use a type witness. - * + *

+ * From Java: + *

+     *     {@code TypeFactory.>>create("(int8)").>get(0).encode(12)}
+     * 

+ *

+ * From Kotlin: + *

+     *     {@code TypeFactory.create>>("(int8)").get>(0).encode(12)}
+     * 

* @param rawType * @return * @param