diff --git a/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java b/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java index 206b2f2f..8a7b6117 100644 --- a/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java +++ b/src/main/java/com/esaulpaugh/headlong/abi/TupleType.java @@ -124,7 +124,7 @@ private static int measureObject(ABIType type, Object value) { @Override public int byteLengthPacked(Tuple value) { final Object[] elements = value != null ? value.elements : new Object[size()]; - return countBytes(i -> this.>get(i).byteLengthPacked(elements[i])); + return countBytes(i -> this.>get(i).byteLengthPacked(elements[i])); } private int countBytes(IntUnaryOperator counter) { @@ -177,7 +177,7 @@ void encodeTail(Tuple value, ByteBuffer dest) { encodeDynamic(value.elements, dest); } else { for (int i = 0; i < value.elements.length; i++) { - this.>get(i).encodeTail(value.elements[i], dest); + this.>get(i).encodeTail(value.elements[i], dest); } } } @@ -185,7 +185,7 @@ void encodeTail(Tuple value, ByteBuffer dest) { @Override void encodePackedUnchecked(Tuple value, ByteBuffer dest) { for (int i = 0; i < value.elements.length; i++) { - this.>get(i).encodePackedUnchecked(value.elements[i], dest); + this.>get(i).encodePackedUnchecked(value.elements[i], dest); } } diff --git a/src/test/java/com/esaulpaugh/headlong/abi/DecodeTest.java b/src/test/java/com/esaulpaugh/headlong/abi/DecodeTest.java index 06333888..9c40469a 100644 --- a/src/test/java/com/esaulpaugh/headlong/abi/DecodeTest.java +++ b/src/test/java/com/esaulpaugh/headlong/abi/DecodeTest.java @@ -730,7 +730,7 @@ public void testDecodeIndexedDynamicType() throws Throwable { byte[][] topics = { FastHex.decode("d78fe195906f002940f4b32985f1daa40764f8481c05447b6751db32e70d744b"), FastHex.decode("392791df626408017a264f53fde61065d5a93a32b60171df9d8a46afdf82992d"), - TypeFactory.create("int8").encode(12).array() + TypeFactory.>create("int8").encode(12).array() }; Tuple result = event.decodeArgs(topics, Strings.EMPTY_BYTE_ARRAY); assertEquals("392791df626408017a264f53fde61065d5a93a32b60171df9d8a46afdf82992d", Strings.encode((byte[]) result.get(0)));