From 9203a78918dcd5dfb317a5289561934b79f367eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9Cur=D0=B0d=20H=D0=B0mz=D0=B0?= Date: Wed, 28 Aug 2024 12:08:29 +0300 Subject: [PATCH] chore: revert hasNext --- src/main/java/com/limechain/polkaj/reader/ScaleCodecReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/limechain/polkaj/reader/ScaleCodecReader.java b/src/main/java/com/limechain/polkaj/reader/ScaleCodecReader.java index 6348a2310..7ab6c8d3c 100644 --- a/src/main/java/com/limechain/polkaj/reader/ScaleCodecReader.java +++ b/src/main/java/com/limechain/polkaj/reader/ScaleCodecReader.java @@ -29,7 +29,7 @@ public ScaleCodecReader(byte[] source) { * @return true if has more elements */ public boolean hasNext() { - return true;//pos < source.length; + return pos < source.length; } /**