Skip to content

Contract API could not return multiple parameters #828

@owyah

Description

@owyah

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions