superblocks-lab
superblocks-lab copied to clipboard
Unable to Interact with overloaded functions
Environment/Browser
1.2.0
Description
Trying to Interact with overloaded functions returns an error.
Steps to reproduce
- Add the following code to an existing contract e.g. HelloWorld:
function test(string _a) public pure returns(string) {
return _a;
}
function test(string _a, uint _b) public pure returns(string, uint) {
return (_a, _b);
}
- Deploy to Browser network
- Open Interact window
- call
test(string)
Expected result
Expected it to simply echo the input.
Actual result
Error in browser console output:
Error interacting with contract: Error: Invalid number of arguments to Solidity function