hyperledger-firefly / hyperledger-firefly/firefly

Contract API could not return multiple parameters

Open
#828 2 comments 0 reactions 1 assignee Claimed by @nguyer View on GitHub
good first issue
Dominant language
Go
Stars
602
Forks
246
Avg merge
18h 47m
Merged PRs (30d)
6

Description

I created smartcontract and has been generated using FireFly API Interface.
This is my smartcontract code:

```
contract Fromzero {
struct Track {
address createdBy;
string materialNumber;
}
Track track;
function gettrack() public view returns (address createdBy, string memory materialNumber) {
return (track.createdBy, track.materialNumber);
}
}
```
expected output:
```
{
"createdBy": "string",
"materialNumber": "string"
}
```
but got:
```
{
"output": null
}
```
I have tried using remix and its working.

Could you all help me please?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.