Open ewingrj opened 5 years ago
I thought this was true as well, but looking at how the RPC handlers work, I think this is only impossible for AragonApp.external
calls.
You can access overridden intents on the AragonApp
instance like you would via web3.js's name + parameter or function signature accessors:
const api = new AragonApp()
return await api['donate(address,uint256)'](<address>, <value>)
This is also possible for AragonApp.call()
.
We probably want to create a similar proxy handler for AragonApp.external
objects to handle the calls transparently as AragonApp
does.
Actually this was only fixed for intents in https://github.com/aragon/aragon.js/pull/401
Currently, there is no support for overloaded functions in a smart contract. The functions are accessed via name only, which will only provide access to the last overloaded function in the abi.
This appears to be true for both the
AragonApp
andAragonApp.external(...)
contract objects.The first donate function in the contract below will not be accessible via the
aragon-client
: