We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to return multiple values with a simple function:
function testMulReturn() public view returns (address, uint) { return (msg.sender, 777); }
Calling:
ContractInstance.methods.testMulReturn().call().then(function(result) { console.log(result); })
Returns { '0': '0', '1': 'x' }
Calling a function with just one return value e.g
function testMulReturn() public view returns (address) { return (msg.sender); }
...is working as expected. Returns: 0x1b42dC2F1A3A548A5e6D76c19cCd768aDCa37815
Why is this happening? Any help much appreciated.
The text was updated successfully, but these errors were encountered:
Just found out the issue does not consist with [email protected].
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
I'm trying to return multiple values with a simple function:
Calling:
Returns { '0': '0', '1': 'x' }
Calling a function with just one return value e.g
...is working as expected.
Returns: 0x1b42dC2F1A3A548A5e6D76c19cCd768aDCa37815
Why is this happening? Any help much appreciated.
Versions
The text was updated successfully, but these errors were encountered: