diff --git a/core/src/main/java/com/bloxbean/cardano/yaci/core/model/serializers/BlockSerializer.java b/core/src/main/java/com/bloxbean/cardano/yaci/core/model/serializers/BlockSerializer.java index 07e8ffb..c8b3a94 100644 --- a/core/src/main/java/com/bloxbean/cardano/yaci/core/model/serializers/BlockSerializer.java +++ b/core/src/main/java/com/bloxbean/cardano/yaci/core/model/serializers/BlockSerializer.java @@ -214,7 +214,13 @@ private void handleWitnessDatumRedeemer(long block, List witnesses, b } } } else if (majorType == MajorType.MAP) { - List> redeemerMapEntriesBytes = getRedeemerMapBytes(redeemersBytes); + List> redeemerMapEntriesBytes = null; + try { + redeemerMapEntriesBytes = getRedeemerMapBytes(redeemersBytes); + } catch (Exception e) { + log.error("Error parsing redeemer map bytes", e); + redeemerMapEntriesBytes = new ArrayList<>(); + } if (redeemerMapEntriesBytes.size() != redeemers.size()) { log.error("block: {} redeemer does not have the same size", block); } else { diff --git a/gradle.properties b/gradle.properties index 9777b79..2c8a4ec 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group = com.bloxbean.cardano artifactId = yaci -version = 0.3.5-SNAPSHOT +version = 0.3.4.1