From ecf1e5d58f816fde67e2bf2ae3ecbd53c35614fe Mon Sep 17 00:00:00 2001 From: pinpong Date: Sun, 5 Feb 2017 20:03:20 +0100 Subject: [PATCH] fixed small extension --- src/main/java/jota/IotaAPICore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/jota/IotaAPICore.java b/src/main/java/jota/IotaAPICore.java index 961898e..51524a1 100644 --- a/src/main/java/jota/IotaAPICore.java +++ b/src/main/java/jota/IotaAPICore.java @@ -168,7 +168,7 @@ public class IotaAPICore { } public GetAttachToTangleResponse attachToTangle(String trunkTransaction, String branchTransaction, Integer minWeightMagnitude, String... trytes) throws InvalidTrytesException { - if(InputValidator.isArrayOfTrytes(trytes)){ + if(!InputValidator.isArrayOfTrytes(trytes)){ throw new InvalidTrytesException(); }