fix parameters check
@@ -1101,7 +1101,7 @@ public class AccountLedgerResource {
if (!AddressTool.validAddress(form.getSignAddress())) {
return Result.getFailed(AccountErrorCode.ADDRESS_ERROR).toRpcClientResult();
}
- if (form.getOutputs() == null || form.getOutputs() == null) {
+ if (form.getOutputs() == null || form.getOutputs().size() == 0) {
return Result.getFailed(AccountErrorCode.ADDRESS_ERROR).toRpcClientResult();
}
for (MultipleTxToDto to : form.getOutputs()) {
