Describe the bug
I tried to simulate a function with multiple returned values but got error
Reproduction steps
This is the my function in the contract :
function getData() public view returns (uint256 _index,uint256 _index1) {
_index = uint256(1);
_index1 = uint256(2);
}
This is the function I use to simulate:
contract.getData.returns({_index: 2,_index1: 3});
The error I got:
Uncaught RuntimeError: abort(Error: Failed to encode return value for getData). Build with -s ASSERTIONS=1 for more info.
Describe the bug I tried to simulate a function with multiple returned values but got error
Reproduction steps This is the my function in the contract : function getData() public view returns (uint256 _index,uint256 _index1) { _index = uint256(1); _index1 = uint256(2); } This is the function I use to simulate: contract.getData.returns({_index: 2,_index1: 3}); The error I got: Uncaught RuntimeError: abort(Error: Failed to encode return value for getData). Build with -s ASSERTIONS=1 for more info.