superblocks-lab icon indicating copy to clipboard operation
superblocks-lab copied to clipboard

Unable to Interact with overloaded functions

Open filippsen opened this issue 6 years ago • 0 comments

Environment/Browser

1.2.0

Description

Trying to Interact with overloaded functions returns an error.

Steps to reproduce

  1. 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);
   }
  1. Deploy to Browser network
  2. Open Interact window
  3. 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

filippsen avatar Dec 06 '18 17:12 filippsen