Skip to content

Commit

Permalink
enhance resiliency to null inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghareeb-falazi committed Oct 20, 2024
1 parent 5fc3727 commit c4e3967
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ public String Invoke(

if (inputs.stream().anyMatch(p -> p.getName().equals(DTX_ID_FIELD_NAME))) {
dtxManager.invokeSc(blockchainId, smartContractPath, signature.getName(), inputs, outputParams,
degreeOfConfidence, callbackBinding, sideEffects, nonce, callbackUrl, timeout, correlationId, digitalSignature);
degreeOfConfidence, callbackBinding, sideEffects, nonce == null ? -1 : nonce, callbackUrl, timeout == null? -1 : timeout, correlationId, digitalSignature);
} else {
manager.invokeSmartContractFunction(blockchainId, smartContractPath, signature.getName(), inputs, outputParams,
degreeOfConfidence, callbackBinding, sideEffects, nonce, callbackUrl, timeout, correlationId, digitalSignature);
degreeOfConfidence, callbackBinding, sideEffects, nonce == null ? -1 : nonce, callbackUrl, timeout == null? -1 : timeout, correlationId, digitalSignature);
}

return "OK";
Expand Down

0 comments on commit c4e3967

Please sign in to comment.