X-Git-Url: http://git.osdn.net/view?p=bytom%2Fbytom-java-sdk.git;a=blobdiff_plain;f=tx-signer%2Fsrc%2Fmain%2Fjava%2Fio%2Fbytom%2Foffline%2Fapi%2FBaseInput.java;h=6b909a7594898befc04da7c5748caf048e65fd7b;hp=4963549ce85b340edcf3b1145a71f65679aee9f3;hb=089a0b16330df95c100c70a031bafe415a2fcfe8;hpb=84860690c82adeb7742a63de8ed0e66343a044d4 diff --git a/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java b/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java index 4963549..6b909a7 100644 --- a/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java +++ b/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java @@ -70,6 +70,9 @@ public abstract class BaseInput { if (program == null) { throw new IllegalArgumentException("the program id of input must be specified."); } + if (keyIndex == null) { + throw new IllegalArgumentException("the key index of input must be specified."); + } if (witnessComponent.getRootPrivateKey() == null) { throw new IllegalArgumentException("the root private key of input must be specified."); }