Table of Content

Commands

gh pr checkout 14228

Actions

Read From Smart Contract - Failed

Read Zero Inputs One Output - Failed

I faced the following error. Seems like related to getInputParameters()

{
  "timestamp": "2024-10-23T01:18:20.817+00:00",
  "status": 500,
  "error": "Internal Server Error",
  "exception": "java.lang.NullPointerException",
  "message": "Cannot invoke \\"java.util.List.stream()\\" because the return value of \\"io.overledger.bpiprepareservice.dto.smartcontract.request.SmartContractReadRequest.getInputParameters()\\" is null",
  "path": "/api/smart-contracts/read"
}

image.png

Here’s what I use

image.png

Improvement needed - Output Parameters prop should be optional

There’s a function that return zero outputs

image.png

But the Output Parameters prop is required

image.png

Prepare Smart Contract Transaction - Pass

Required props

image.png