While developing a Smart Contract with Solidity on Remix, after creating the contract I'm trying to calling function setGrantAddress:

mapping (address => uint256) public balanceOf; but when I call setGrantAddress for address ["0x14723a09acff6d2a60dcdf7aa4aff308fddc160c,"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"]

error as ---> transact to PublicAddress.setGrantAddress errored: Error encoding arguments: SyntaxError: Unexpected number in JSON at position 47.

Any idea how can I properly call setGrantAddress? enter image description here

program code link:-Unable to input address[] parameter in remix

1 Answer 1


Check your parameters, you are missing " at the end of first address, hence the error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.