In a regular solidity function, we have to name the arguments like:
function getAddr(string AddrName) public. . .
Here's the argument is a string which is named AddrName
.
I had build a dapp which simplifies the interaction with smart contract using URL parameters. So to initiate the function with prefilled values in arguments I can simply browse: https://conteract.io/c/moataddress?function=getAddr&AddrName=owner
But prefilled input values doesn't work in mapping
as the arguments is not named in mappings: https://conteract.io/c/moatfund?function=Investors
mapping(address => uint256) public Investors;
Provided that the mapping is used more often, is there any way to name the arguments in mapping or any workaround which might solve this issue.
Thanks.