Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

How can I get the method returns if the returns contain more than one result #44

@terryyyyyy

Description

@terryyyyyy

One of my contract method will returns more than one params, How can I get them? I used multicall like this but It doesn't work
const dis = await aggregate([ { target: stakingFactoryId, call: [ 'distributionEras(uint8)(uint256,uint256,uint256)', 0 ], returns: [ ['amount'], ['startHeight'], ['stopHeight'] ] } ], Multi_Config) console.log({dis});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions